TTT-2 / ttt2-role_necro

TTT2 necromancer role that is able to revive player and transform them into deagle armed zombies.
Apache License 2.0
2 stars 12 forks source link

Revival fails sometimes #34

Open mexikoedi opened 3 hours ago

mexikoedi commented 3 hours ago

In one round I tried to revive an unidentified corpse of a Traitor. He respawned as a Traitor instead of a Zombie. There was also this error in the server console:

[[TTT2] Necromancer [ROLE]] lua/terrortown/events/necro_revive.lua:24: attempt to call method 'SteamID64' (a nil value)
  1. Trigger - lua/terrortown/events/necro_revive.lua:24
   2. Trigger - lua/ttt2/libraries/events.lua:139
    3. AddZombie - lua/terrortown/entities/roles/zombie/shared.lua:119
     4. OnRevive - gamemodes/terrortown/entities/weapons/weapon_ttth_necrodefi.lua:51
      5. FinishRevival - gamemodes/terrortown/entities/weapons/weapon_ttt_defibrillator.lua:252
       6. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_defibrillator.lua:307

This issue was encountered on TTT2 v0.14.0 from Steam.

TimGoll commented 3 hours ago

was this a player corpse? or a fake body or so? Or was the player disconnected?

mexikoedi commented 3 hours ago

was this a player corpse? or a fake body or so? Or was the player disconnected?

This was a normal player corpse and he was still connected. He was also a bit surprised why he didn't spawn as a Zombie.

TimGoll commented 3 hours ago

well that is strange, but thanks for the report.

That only happened once, it worked at other times?

mexikoedi commented 3 hours ago

well that is strange, but thanks for the report.

That only happened once, it worked at other times?

Yep, worked all the time except one round.