View Single Post
ColdFire
Member
Join Date: Jan 2008
Old 06-26-2008 , 04:12   Re: TF2 Class Restrictions
Reply With Quote #28

I was wondering (I did not have time to test ClassRestrict with SDMR and see what happens in sudden death)

Would it work if:

- I add this global var: decl g_iSuddenDeath = 0 ;
- I hook teamplay_suddendeath_begin and set g_iSuddenDeath = 1
- I hook teamplay_suddendeath_end and set g_iSuddenDeath = 0
- Add a check in Event_ChangeClass and make it do nothing if g_iSuddenDeath = 1?
- and add a cvar saying if we want to do no-class-restrict in sudden death

Edit: or maybe check g_iSuddenDeath in "PickClass (iTeam)" instead of Event_ChangeClass ?
ColdFire is offline