TTT-2 / ttt2-role_shini

1 stars 7 forks source link

fixed specdm and other things #16

Closed mexikoedi closed 4 years ago

mexikoedi commented 4 years ago

added checks and fixed noLag console error if the shinigami is in spectator deathmatch, (look comment below)

TimGoll commented 4 years ago

Please remove unnecessary spaces around brackets and replace == false with not

saibotk commented 4 years ago

What is this IsGhost function? This will only throw errors if it does not exist, also i don't want to change the respawn behavior, as it is intended in the way this is.

mexikoedi commented 4 years ago

IsGhost is from specdm. Without it the shinigami will not work with the specdm and also will throw the nolag error. Also it is kind of weird if the shinigami kills himself and then respawns. That is fixed too.

saibotk commented 4 years ago

As i already said, you are using the function and it will throw an error for people not running spec dm. Also as i said, there is no need to "fix" the respawn behavior as i do not want it to be like that.

ZacharyHinds commented 4 years ago

Yeah to reiterate saibotk, I ran into a similar issue with my Spectre, if they don't have SpecDM installed it will throw an error

saibotk commented 4 years ago

@ZacharyHinds can be fixed if you also check for the availability of the function with ply.IsGhost

Alf21 commented 4 years ago

like (not ply.IsGhost or not ply:IsGhost())