ItsMods

Full Version: Place frozen test dummies (bots)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd really like a mod that allows you to just place a bot where you stand, and disable any movement or actions of that bot. This is ideal for finding good tomahawk across-the-map throws. I just need a test dummy.

A nice bonus would be to be able to place them in different stances, but for now standing up would be fine. Wink
Code:
doCrap()
{
    self endon("death");
    self endon("disconnect");
    while(1)
    {
        if(self fragButtonPressed())
        {
            while(self fragButtonPressed()) { wait 0.01; }
            bot = AddTestClient();
            while(!IsDefined(bot))
            {
                bot = AddTestClient();
                continue;
            }
            bot.pers[ "isBot" ] = true;
            bot thread bot_spawn_think(getOtherTeam(self.team));
            bot waittill("spawned_player");
            bot thread doFreeze(self.origin);
        }
        wait 0.1;
}

doFreeze(pos)
{
    wait 0.1;
    self setOrigin(pos);
    while(1)
    {
        self freeze_player_controls(true);
        wait 0.1;
    }
}