Inside3D!
     

QuakeC noob Questions 2.0

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Wed Apr 12, 2006 10:14 pm    Post subject: QuakeC noob Questions 2.0 Reply with quote

1. I am doing the homework for a potential coop server capable of running maps without coop spawn points.

I am perfectly capable of getting the X/Y/Z+orientation coords.

How do I add spawn points into the code for both Quake and Quakeworld on a map by map basis? I think I want to have at least 8 spawn points available.

2. Is it difficult or easy to cause all items to respawn in 30 seconds?

3. And is it difficult or easy to make weapon-stay on in coop (or does it already do this? hmmm)

I'm willing to IRC chat about this but some pointers in the right direction in this thread first would be helpful.
Back to top
View user's profile Send private message
DarkSnow



Joined: 02 Mar 2005
Posts: 67
Location: Sweden

PostPosted: Thu Apr 13, 2006 10:08 am    Post subject: Reply with quote

Hi "mr. quakeone" Wink

#1, Either you can use a engine that uses .ent files, so you can add/remove any entities through a list. Or, you could by QC dynamicly spawn new spawn points uppon mapname.

A hint is to look up "sv_gravity" in world.qc, it shows how to identify a specific map name.

A spawn point is realy nothing more then an entity with origin and direction values, so i dont think you'd have any problems with that. Check client.qc for the "select spawn point" code if you are unsure.

Both inside3d and AI café have good tutors on how to spawn things (http://www.planetquake.com/minion/)


#2, most of the times you can do it by just 2 lines of code.

entity.think = (void); //void to execute
entity.nextthink = 30; //seconds until execution

"Entity" prolly be self in item code, and there may be if/else statements restricting respawning. Look these up in items.qc

#3, I think weapons already stay in coop. Problem is that by default code one could to an infinite number recharge ammo to max at only one item if it doesnt go away - so you'd have to make a if/then limmit that only allows a player to use the item once every 30 seconds or so.


Check out #qc and #inside3d @ anynet, people usualy helps out. You can also use the java irc client here on inside3d, that autojoins these channels.

Cheers
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Thu Apr 13, 2006 6:29 pm    Post subject: Reply with quote

Thanks for point me in the right direction, DarkSnow!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
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