Jump to content

V1 Rocket (Beta 2) - SWITCH entity triggered if bot in-game at map start in silEnT mod only...

Recommended Posts

Good evening,

Just witnessed something quite weird with a switch in V1 Rocket, only with silEnT, only with a least a bot in-game...

There's a trigger called rocdoor_Moving, fired when you press a switch to open/close the room where you grab the rocket fuel, in the last map area

This trigger is fired during map start, only under silEnT, only when a bot is in-game (tested with the Axis team)

If yourself you jointed Axis, but no bot, no trigger; all this doesn't happen with OB mod

I've noticed that on an online server, and was able to reproduce that locally; narrowed it down easily,  because there's a single location where the Axis have that availability managed, and adding a MapDebugPrint revealed it (printed before OnMapLoad one btw)

What kind of madness is this? After that MLB Egypt weird thingy some months ago

Map download: Wolffiles.de - your filebase

Link to comment
Share on other sites

  • Moderators

If there is at least one bot, then OnMapLoad is called immediately before OnBotJoin. If there are no bots, then OnMapLoad is called from BotUpdate. It depends on mod when it sends GAME_CLIENTCONNECTED event and when it calls BotUpdate function. Your gm map script should not depend on specific time when OnMapLoad is called. It can be one time frame earlier in silEnT.

The door lever is always moved at the beginning of the game. Your trigger function will be called only if it is registered by OnTrigger. The trigger is missed if OnTrigger is called after the lever has moved.

You can fix it by moving line OnTrigger( "rocdoor_lever1_Moving", Map.rocdoor_Moving ) to the end of OnMapLoad and insert sleep(1) before it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...