Quote:
Originally Posted by TnTSCS
I'll look at the bombsite index part again, but I thought clients passed through OnClientConnected on map changes...
|
it's strange, but first time joining the server it works, changing the map (sm_map) to same or different map and it doesn't work anymore. (plant area is not dissabled) - also I don't think you call this code to disable the right bombsite when the bombsite convar is changed.
Quote:
Also, the entire Event_BeginBombPlant is not running... it has
#if 0
// ... Event_BeginBombPlant function here
#endif
|
in my latest gist? maybe, as I didn't want the "you must plant at ..." messages to appear anymore on the maps that only have 1 bombsite anyway.. though, I tested without having the functions disabled as well...
Quote:
This is the code that handles dropping the bomb before a T is moved to CT:
PHP Code:
// Let's drop the bomb prior to player team movement so a CT doesn't end up with the bomb if (the_bomb > MaxClients && IsValidEntity(the_bomb)) { new bomb_owner = Weapon_GetOwner(the_bomb); if (bomb_owner != INVALID_ENT_REFERENCE) { CS_DropWeapon(bomb_owner, the_bomb, false); } }
|
didn't seem to work when we were playtesting, I sometimes had the bomb and when a friend choose me to move to CT, I kept the bomb, the bomb wasn't dropped, I guess csgo handles the bomb dropping quite differently?
EDIT: maybe because I have sm_brush_fastround to 1 as I noticed last time, I was T, the plugin forced me to drop the bomb, then the round restarted (I got the bomb again) and I was switched to CT side?