Inside3D!
     

Impulse commands
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Mon Aug 13, 2007 4:00 pm    Post subject: Reply with quote

Argh I didn't even pay attention to the impulse command. localcmd probably wouldn't have worked at all... And you're probably right about it only spawning one... Doh!
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Mon Aug 13, 2007 4:27 pm    Post subject: Reply with quote

Thanks guys, I'll give it a whirl. BTW, where can I read up on how to do edit QuakeC?
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Mon Aug 13, 2007 8:26 pm    Post subject: Reply with quote

No luck Sad It doesn't seem to be working. I tried both codes.
I can't even get a bot to spawn at all.

I edited world.qc, compiled, started the server, connected, typed serverinfo bot_num 2 at the console, restarted the server, nothing???
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Tue Aug 14, 2007 4:08 pm    Post subject: Reply with quote

Impulse is a client command, it will not work on the server.

To add bots on the server, just call BotConnect directly, the first parm is the template, and the second the desired skill level. 0 for template chooses a random one, like the impulse 100 command does.
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Tue Aug 14, 2007 8:26 pm    Post subject: Reply with quote

FrikaC, can you give me an example please.
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Fri Aug 17, 2007 2:38 pm    Post subject: Reply with quote

umm.....anyone home?
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Fri Aug 17, 2007 2:58 pm    Post subject: Reply with quote

zzzzzzzzzzzzZZZZZZZZZZZZZZZZZzzzzzz
Back to top
View user's profile Send private message Send e-mail
Dr. Shadowborg
Inside3D Staff


Joined: 16 Oct 2004
Posts: 726

PostPosted: Fri Aug 17, 2007 5:33 pm    Post subject: Reply with quote

What FrikaC means, is something like this:

Code:

while(spawnnum < bot_num)
{
  BotConnect(team, whatbot, skill);
  spawnnum = spawnnum + 1;
}


Where bot_num is how many bots should connect, team is what team they're on (can be 0 if no teamplay), whatbot being what bot it is (0 makes it random), and skill is obviously what skill level they're at. (use something like cvar to get the skill cvar)

Put that in somewhere in client.qc or maybe world.qc and it really should work.
_________________
"Roboto suggests Plasma Bazooka."
Back to top
View user's profile Send private message
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Sat Aug 18, 2007 5:10 pm    Post subject: Reply with quote

Thank you Doc!
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Sun Aug 19, 2007 11:09 pm    Post subject: Reply with quote

Still no luck Sad . Won't compile.
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
Dr. Shadowborg
Inside3D Staff


Joined: 16 Oct 2004
Posts: 726

PostPosted: Mon Aug 20, 2007 3:52 pm    Post subject: Reply with quote

redrum wrote:
Still no luck Sad . Won't compile.


Error messages please.
_________________
"Roboto suggests Plasma Bazooka."
Back to top
View user's profile Send private message
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Tue Aug 21, 2007 12:25 am    Post subject: Reply with quote

"while" is not a type
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Tue Aug 21, 2007 6:43 am    Post subject: Reply with quote

Typos suck...

redrum, you need to learn some coding to fix things properly.
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
redrum



Joined: 28 Mar 2007
Posts: 367
Location: Long Island, New York

PostPosted: Tue Aug 21, 2007 4:06 pm    Post subject: Reply with quote

I know. Where should I start?
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Tue Aug 21, 2007 9:36 pm    Post subject: Reply with quote

There are tutorials on the very site your on. Also get hooked up with Coffee's tut's, those are some quality stuff. I can safely say that's where most of my coding skills originate from, along with a lot of help from friendly people. Also try the allmighty irc.
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group