Re: [SM GameMode] InstaDM
Posted: 21 May 2013, 16:03
Working now, thanks a lot for this, script is awesome! 

kak0 wrote:Update 16/05/2013
Script API :
- Before, when you wanted to respawn a bot, you had to destroy it and create it back. You can now respawn a bot like you would respawn a human player, with the function SpawnBotPlayer. This function takes the same arguments as SpawnPlayer, except that the Player has to be a bot and the spawn location doesn't have to be a CSmBlockSpawn, it can be any CSmScriptLandmark (including CSmScriptBotPath). Please note that you still have to call CreateBotPlayer for the first spawn, and you still need to destroy a bot when you don't use it anymore.
- Fixed some issues that could occure while changing the Behaviour of the bot.
- Fixed the bug that made rockets disappear when the bot who shot them was destroyed (should fix the bug of the non-appearing +1 as well)
- Fixed some issues that could occure when a bot was in Patrol mode and was returning to its Path
- New variable Path in CSmScriptBotPath, to access the points defined in the map editor (read-only)
- New variable IsStuck in the Driver, to know if the bot can't move (this variable is True when the bot didn't move for 1 sec or more, when he is supposed to move)
- New API to control the bot entirely with the script. The corresponding Behaviour enum is called Scripted. Here's the list of available functions:
- ScriptedBot_Move(CSmPlayer Bot, Vec3 Position) : Moves the bot to the given position
- ScriptedBot_MoveDelta(CSmPlayer Bot, Vec3 Delta) : Same as the previous function, but with a position depending on the current position
- ScriptedBot_Aim(CSmPlayer Bot, Vec3 Position) : Aims at the given position
- ScriptedBot_AimDelta(CSmPlayer Bot, Real DYaw, Real DPitch) : Turns the bot's aim with the given angles
- ScriptedBot_MoveAndAim(CSmPlayer Bot, Vec3 Position) : Same as calling ScriptedBot_Move followed by ScriptedBot_Aim
- ScriptedBot_RequestAction(CSmPlayer Bot) : Makes the bot use its current action (right click)
- ScriptedBot_RequestGunTrigger(CSmPlayer Bot) : Makes the bot fire
- Boolean variable ScriptedBot_ForceAimInMoveDir in the Driver : Forces the bot to aim in the direction he is moving (just as he does when he is in a predefined mode). False by default.
i'm still searching for a fix of the issue, it's caused by the update on May 16th, the servers just haven't been updated i guess (i just created one and it didn't work as well).Seki13 wrote:I am still encountering the same problem with no solution, the bots are stuck at spawn.
This problem happened the first time after the update on May 16th.
In a local server, the bots can shoot but they can't move.
I want to know if this is only happening with my game or with others.