Page 1 of 1

[CSGO] Override win condition and panel

Posted: Sun May 21, 2017 8:32 am
by existenz
Hey :)

I want to know if it's possible to override win condition of a round and change the 'Ct win' or 'T win' by another things like player name ?

I have found that but i don't want to force fire win condition, i want to override it when it calls ? It exist maybe an hook ?

Syntax: Select all

info_map_parameters = Entity.find_or_create("info_map_parameters")
info_map_parameters.fire_win_condition(condition)

Re: [CSGO] Override win condition and panel

Posted: Sun May 21, 2017 4:18 pm
by L'In20Cible
You cannot change the displayed text. The server send an index (the reason) to the clients and they are responsible to display the text associated with it. From a server-side plugin, you can either block it or let it pass (by hooking some CCSGameRules method).

Re: [CSGO] Override win condition and panel

Posted: Mon May 22, 2017 7:57 am
by existenz
Thanks for your answer.
If i understand well for example if i take the example of some players are in group with one other player. I must check in player_death if it's the last group and call 'TerminateRound' to finish it ?