Forum

Impulse commands

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Postby Sajt » Mon Aug 13, 2007 4:00 pm

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.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby redrum » Mon Aug 13, 2007 4:27 pm

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: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby redrum » Mon Aug 13, 2007 8:26 pm

No luck :( 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: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby FrikaC » Tue Aug 14, 2007 4:08 pm

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.
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Postby redrum » Tue Aug 14, 2007 8:26 pm

FrikaC, can you give me an example please.
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby redrum » Fri Aug 17, 2007 2:38 pm

umm.....anyone home?
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby FrikaC » Fri Aug 17, 2007 2:58 pm

zzzzzzzzzzzzZZZZZZZZZZZZZZZZZzzzzzz
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Postby Dr. Shadowborg » Fri Aug 17, 2007 5:33 pm

What FrikaC means, is something like this:

Code: Select all
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.
User avatar
Dr. Shadowborg
InsideQC Staff
 
Posts: 1110
Joined: Sat Oct 16, 2004 3:34 pm

Postby redrum » Sat Aug 18, 2007 5:10 pm

Thank you Doc!
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby redrum » Sun Aug 19, 2007 11:09 pm

Still no luck :( . Won't compile.
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Dr. Shadowborg » Mon Aug 20, 2007 3:52 pm

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


Error messages please.
User avatar
Dr. Shadowborg
InsideQC Staff
 
Posts: 1110
Joined: Sat Oct 16, 2004 3:34 pm

Postby redrum » Tue Aug 21, 2007 12:25 am

"while" is not a type
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Urre » Tue Aug 21, 2007 6:43 am

Typos suck...

redrum, you need to learn some coding to fix things properly.
I was once a Quake modder
User avatar
Urre
 
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon

Postby redrum » Tue Aug 21, 2007 4:06 pm

I know. Where should I start?
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Urre » Tue Aug 21, 2007 9:36 pm

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.
I was once a Quake modder
User avatar
Urre
 
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon

PreviousNext

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest