UPDATE:::
Guys we might have another issue, i think the ladder fix needs a looking into , The spawn event is not being triggered after a player is on a ladder.
To replicate
Join Team,
Attach Ladder
Join Spec
Join SAME team
When you spawn , NO spawn event.
and since my weapon limiter uses spawn event, it kinda sucks, means they can choose any weapon..
EDIT::
Guys i have managed to fix both problems i stated above, by editing the global/check_team_swap.scr
You can use this one instead , but ill wait for someone who made it , to comment on why it was made that way lmao but anyway here
Parts in BOLD are where i added changes
Code:
main local.hva:
if(local.hva=="end")
{
self.tss = 0
end
}
local.team = self.dmteam
self.tss = 1
while(isalive self && self.tss == 1)
{
waitframe
if(self.dmteam != "spectator" && self.dmteam != local.team)
{
self usestuff
self unattachfromladder
self.tss = 0 /// This stops doors opening after, my guess is that they forgot to end the loop , so usestuff was still being applied.
}
/// This is for the spawn event not triggering,
if(self.dmteam == "spectator")
{
self usestuff
self unattachfromladder
self.tss = 0
}
}
end