PremyslTalich / TeamGames

Sourcemod plugin providing team based games for prisoners and some useful things for wardens.
17 stars 13 forks source link

Friendly fire for CTs #39

Closed shanapu closed 8 years ago

shanapu commented 8 years ago

Hi, I would have a new ConVar request. I'm not happy with this part: https://github.com/KissLick/TeamGames/blob/master/addons/sourcemod/scripting/TeamGames.sp#L379-L381

// CT can't hurt CT if (iAttackerTeam == CS_TEAM_CT && iVictimTeam == CS_TEAM_CT) return Plugin_Handled;

I used by mistake an old modified version of TG for all my testings and forgot about this part. To keep compatibility with MyJailbreak I wrote this little plugin to toggle your friendly fire system #20 . But now I ran in the issue for CTs in a FreeForAll or "teammates_are_enemies round". stupid me.

Would be nice to have a Cvar to toggle CTs friendly fire or include this in tg_team_none_attack or maybe even a native? Or maybe you got a better idea to handle this conflict, instead of toggling cvars. Much Thnks!

shanapu commented 8 years ago

I see you make a new cvar. Much thanks! gonna implement it in my plugin! https://github.com/KissLick/TeamGames/compare/2eab5b9fd4...2e46786294#diff-9f7a6f9028089f00e61d6afebbc51d15R381 Thanks!