mapvetopick_controller

From Source Entities
Jump to navigation Jump to search

Code classes:

mapvetopick_controller is a point entity present in Csgo-small.pngCounter-Strike: Global Offensive. It's used on the map lobby_mapveto and fires outputs related to the pick/ban system in the "Broken Fang Premiere" mode. It's also involved in the logic to make the UI elements work.

Outputs[edit | edit source]

OnMapVetoed <string>
Fires at the end of a phase when a map was banned. Can fire multiple times at once. Automatically puts the name of the banned map as the input parameter, unless overridden by the mapper. Bug: If multiple maps were banned in a single phase, the parameter passed is always the name of only one of those maps. Tracker
OnMapPicked <string>
Fires when the map to play on has been picked. Automatically puts the name of the picked map as the input parameter, unless overridden by the mapper.
OnSidesPicked <integer>
Fires when the deciding team has chosen which side they want to play first. Automatically puts a boolean which is true if they're switching sides as the input parameter, unless overridden by the mapper.
OnNewPhaseStarted <integer>
Fires when a new phase starts. Automatically puts the number of the phase as the input parameter, unless overridden by the mapper.
OnLevelTransition <integer>
Fires when phase 6 ends. Automatically puts the number 7 as the input parameter, unless overridden by the mapper.