Results 1 to 8 of 8

Thread: Player won't die?!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts

    Player won't die?!

    Hey,

    I got into troubles with my modified Callback_PlayerDamage()

    i call this:
    Code:
    player thread [[level.callbackPlayerDamage]]( self , player , player.health + 666 , 0 , "MOD_SUICIDE" , "none" , player.origin , ( 0 , 0 , 1 ) , "none" , 0 );
    on a player, the health drops down to 0 (finishPlayerDamage() is triggered) but the player is still alive!
    the Callback_PlayerKilled() isn't called at all! >>> isAlive() turns false, the sessionstate remains on "playing"

    SO: why the Callback_PlayerKilled() is not called and therefore the player will not die despite the fact that finishPlayerDamage() ran before?


    EDIT:
    added a 0.05s delay before the [[level.callbackPlayerDamage]](), fixed it, but its not solved at all...
    before i aplied the damage i set a new playermodel, unlinked the player and enabled the weapons, since the player was a driver of a vehicle...
    i guess the game needs a delay between re-model and the damagefunc
    Last edited by serthy; 6th January 2013 at 12:35. Reason: kinda fixed, not solved

  2. The Following User Says Thank You to serthy For This Useful Post:

    firefox (8th January 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •