frikbots : Some questions
Moderator: InsideQC Admins
6 posts
• Page 1 of 1
frikbots : Some questions
Can someone tell how to make so that bots could move more slowly? Still it is necessary that there was a dependence of speed from different weapons.
And how to make two teams that they did not attack members of the team?
And how to make two teams that they did not attack members of the team?
^O,..,o^
- Freemanoid
- Posts: 52
- Joined: Mon Jun 16, 2008 11:25 am
- Location: BELARUS
You can have a fixed sv_maxspeed, and what defines the speed of a player is cl_forwardspeed, cl_sidespeed, cl_backspeed and cl_upspeed (also these values may be above sv_maxspeed, but never exceeds the limit).
Tune all these to the specified speed, which is normally below sv_maxspeed (default 320) when you carry a heavy weapon.
I think frikbots have their own cl_forwarspeed and stuff tuned..
I think stuffcmd() doesn't work with them.
And frikbot understand teamplay by default. You'll need to set teamplay to 1 or 2. Use impulse 101 to add an enemy bot, impulse 100 to add a teammate.
Tune all these to the specified speed, which is normally below sv_maxspeed (default 320) when you carry a heavy weapon.
I think frikbots have their own cl_forwarspeed and stuff tuned..
I think stuffcmd() doesn't work with them.
And frikbot understand teamplay by default. You'll need to set teamplay to 1 or 2. Use impulse 101 to add an enemy bot, impulse 100 to add a teammate.
-

Orion - Posts: 476
- Joined: Fri Jan 12, 2007 6:32 pm
- Location: Brazil
As for slowing down bots you'll need to modify CL_KeyMove() which is at the top of bot_phys.qc. Any changes you make to player speeds will need to be duplicated in there, though keep in mind those values are always doubled unless the bot needs to walk for some reason. So if you want to force a player to use a cl_forwardspeed of 200, you'll need to give the bot a base forward speed of 100.
-

Supa - Posts: 164
- Joined: Tue Oct 26, 2004 8:10 am
Okay,thanks.
And another question. Is it possible to make so that one team appeared only in one place and started from it.Other team too.Like in Counter-strike.
And another question. Is it possible to make so that one team appeared only in one place and started from it.Other team too.Like in Counter-strike.
^O,..,o^
- Freemanoid
- Posts: 52
- Joined: Mon Jun 16, 2008 11:25 am
- Location: BELARUS
Yeah, and if I'm not mistaken there might even be a tutorial on it?
But if there's not, it's simple enough to create a new team variable in defs.qc, assign a team to each player at his or her creation using some sort of menu, create two new spawn entities, one for each team, and simply check against the player's team variable when he or she is spawned
!
But if there's not, it's simple enough to create a new team variable in defs.qc, assign a team to each player at his or her creation using some sort of menu, create two new spawn entities, one for each team, and simply check against the player's team variable when he or she is spawned
-

Downsider - Posts: 621
- Joined: Tue Sep 16, 2008 1:35 am
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest