Teamspawns
Moderator: InsideQC Admins
31 posts
• Page 2 of 3 • 1, 2, 3
Note that you probably want to avoid changing the player's classname. There are a lot of expectations within the qc code that expect all playing players (and only players) to have the classname "player".
If its a TC then fine, but don't be surprised if you find you can no longer grab items.
If its a TC then fine, but don't be surprised if you find you can no longer grab items.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
i dont exactly get Rook's code... im still at the editing part of qc... im getting better at understanding but i dont think im quite there yet.
i get selectspawnpoint so i think i know where that goes, but i dont get why the entitie thing is behind it...
also i tested what i already have done which is obvserver mode ect directly from the tutorial and in listen mode you start as observer and then select a team and spawn in the observer spawn... now if i test it on a dedicated server after selecting a team the server just crashes... so i dont know whats up with that.... im going to redo it and just test it vannilla tut style and see what happens... i may have just messed something up.
edit:rook i do get the entitie thing before selectspawnpoint sorry didnt see it in the original...
i get selectspawnpoint so i think i know where that goes, but i dont get why the entitie thing is behind it...
also i tested what i already have done which is obvserver mode ect directly from the tutorial and in listen mode you start as observer and then select a team and spawn in the observer spawn... now if i test it on a dedicated server after selecting a team the server just crashes... so i dont know whats up with that.... im going to redo it and just test it vannilla tut style and see what happens... i may have just messed something up.
edit:rook i do get the entitie thing before selectspawnpoint sorry didnt see it in the original...
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
Right, basically your SelectSpawnPoint checks for the team and does the same thing in both conditions, So I took the check out of selectspawnpoint and put it in PutClientInServer. Also, the part "if (e.classname == "player") " in SelectSpawnPoint, is there to reduce telefragging someone who is at/near that origin. I agree with Spike that players should be left classname player and possibly using another bitwise variable to setup conditions for PLAYERS 
- r00k
- Posts: 1110
- Joined: Sat Nov 13, 2004 10:39 pm
thats probably too far advanced for me :/ maybe a later release once iv learned a little more
although recently i tested the code before iimplementing yours and in listen server i spawn at the info_player_start as an observer choose a team and spawn at the info_player_start again as my class, then i tested it today on a dedicated server and it just crashes the server after i select my team. anyone have any idea if its the code for team spawns or , the code for teams? im hoping the code for team spawns as i think it would be easyier for me to fix. right now im going try and redo the code once more and see what that does, and if the problem persists ( which i should do this anyways ) im going to implement your code then test again.
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
r00k wrote:Right, basically your SelectSpawnPoint checks for the team and does the same thing in both conditions, So I took the check out of selectspawnpoint and put it in PutClientInServer. Also, the part "if (e.classname == "player") " in SelectSpawnPoint, is there to reduce telefragging someone who is at/near that origin. I agree with Spike that players should be left classname player and possibly using another bitwise variable to setup conditions for PLAYERS
Actually, I'd make that if(e.teamname == "blue") and so on... Strings have advantages related to how find() works.
-

Lardarse - Posts: 266
- Joined: Sat Nov 05, 2005 1:58 pm
- Location: Bristol, UK
well,me an my little brother is going to make a demonstration video a little later. show you guys all bug and stuff atm . got quite a few fixed and quite a few abundant .... i still havnt tryed the spawn code r00k put up yet, but after the video ill try it out and find the differnces and see which works better for what i need. and hopefully with some better reference to whats wrong. you guys might be able to help me understand what i can do to fix this problems ( even in future reference ) just to let you know ya'll have been a big help. its great to get this help. it helps me to understand new thing in qc and make be better. eventually ill be able to help someone who has similar issues as me. id even like to learn enough to help some of you in the future
just letting you all know i appreciate all of your help. (sorry a lil buzzed- drank a bit)
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
ceriux: I'm up for helping you debug your code and squish bugs
I had LordHavoc and FrikaC helping me with QuakeC when starting out, it's how I learned. I'm not saying that I'm a Jedi worthy of an apprentice or anything like that, but I'm willing to help
Best way is on irc chat though, turnaround for stuff via forums can be frustrating!
I had LordHavoc and FrikaC helping me with QuakeC when starting out, it's how I learned. I'm not saying that I'm a Jedi worthy of an apprentice or anything like that, but I'm willing to help
Best way is on irc chat though, turnaround for stuff via forums can be frustrating!
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
well here's a test session my lil bro and i did today, you can hear commentary about the bugs from my lil bro (dankah) .
http://www.youtube.com/watch?v=xHy_E0Rqaqg
EDIT: oh and thanks for the link and info.
http://www.youtube.com/watch?v=xHy_E0Rqaqg
EDIT: oh and thanks for the link and info.
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
ceriux: doh! you've missed me both times by about 10 minutes
Ok so yeah I watched the video. I think a lot of the problems are stemming from only a couple of small things in code. This is because by changing 1 or 2 small things, the rest of the code like ClientObituary and T_Damage etc. functions rely on things to be setup a specific way. Next time you're on (and we manage to meet up at the same time for a change!) send me your source and I can debug with you and explain things.
[08:41] *** Ceriux (~ceriux@199-213.126-70.tampabay.res.rr.com) left ()
[08:51] <Electro> ceriux
[08:51] <Electro> doh
[08:51] <Electro> you son of a
Ok so yeah I watched the video. I think a lot of the problems are stemming from only a couple of small things in code. This is because by changing 1 or 2 small things, the rest of the code like ClientObituary and T_Damage etc. functions rely on things to be setup a specific way. Next time you're on (and we manage to meet up at the same time for a change!) send me your source and I can debug with you and explain things.
Benjamin Darling
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
http://www.bendarling.net/
Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
- Electro
- Posts: 312
- Joined: Wed Dec 29, 2004 11:25 pm
- Location: Brisbane, Australia
31 posts
• Page 2 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 1 guest
