[CSGO] Override win condition and panel

All other Source.Python topics and issues.
existenz
Senior Member
Posts: 111
Joined: Thu Feb 09, 2017 3:33 pm
Location: France
Contact:

[CSGO] Override win condition and panel

Postby existenz » Sun May 21, 2017 8:32 am

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)
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: [CSGO] Override win condition and panel

Postby L'In20Cible » Sun May 21, 2017 4:18 pm

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).
existenz
Senior Member
Posts: 111
Joined: Thu Feb 09, 2017 3:33 pm
Location: France
Contact:

Re: [CSGO] Override win condition and panel

Postby existenz » Mon May 22, 2017 7:57 am

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 ?

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 28 guests