FileFront Gaming Forums

SDK Gametype Coding

This is a discussion on SDK Gametype Coding within the SoF Modding and Editing forums, part of the Soldier of Fortune Series category; is it possible to edit the gametype code (gt_inf) in the source so that one team can spawn but the ...

SoF Modding and Editing More info about a Mod? Making a Mod? Looking for Modders? Right here!

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1  
Old August 11th, 2009
I'm too cool to Post
 
Join Date: November 26th, 2008
Posts: 7
Rep Power: 0
iRize is a n00b
Default SDK Gametype Coding

is it possible to edit the gametype code (gt_inf) in the source so that one team can spawn but the other team cant?

If Possible, please post the code : )
Reply With Quote
  #2  
Old August 12th, 2009
Commando.DK's Avatar
Alliance of Veterans
 
Join Date: September 20th, 2008
Location: Denmark
Posts: 67
Rep Power: 0
Commando.DK has disabled reputation
Send a message via ICQ to Commando.DK Send a message via AIM to Commando.DK Send a message via MSN to Commando.DK Send a message via Yahoo to Commando.DK
Default Re: SDK Gametype Coding

The spawning of the players is controlled by the game code (aka the server code).

Why would you want this anyway?
Reply With Quote
  #3  
Old August 13th, 2009
I'm too cool to Post
 
Join Date: November 26th, 2008
Posts: 7
Rep Power: 0
iRize is a n00b
Default Re: SDK Gametype Coding

Damn. lol I am making a New Inf Based Gametype For My Friends and I For Fun... I wanted it to be server side, but... :P
Reply With Quote
  #4  
Old August 13th, 2009
Commando.DK's Avatar
Alliance of Veterans
 
Join Date: September 20th, 2008
Location: Denmark
Posts: 67
Rep Power: 0
Commando.DK has disabled reputation
Send a message via ICQ to Commando.DK Send a message via AIM to Commando.DK Send a message via MSN to Commando.DK Send a message via Yahoo to Commando.DK
Default Re: SDK Gametype Coding

Well it is server side. It does however take some skill to understand and modify the code that handles the spawning of players.

I think Goldrush has some cvars that controls how soon each of the teams will spawn.

If you like alternative gametypes then you could also take a look at this demo of RoCMod CDK.
Reply With Quote
  #5  
Old August 13th, 2009
DarkGstar's Avatar
Piano Lover
 
Join Date: December 13th, 2006
Location: Holland
Posts: 67
Rep Power: 0
DarkGstar has disabled reputation
Send a message via MSN to DarkGstar
Default Re: SDK Gametype Coding

You probably won't have to code at all.
Does the mod you're using support the .entity system?

If so you can remove all the spawnpoints of the specific team in the entity file.
Easy as that.

Also I know RPMPro has the feature to lock teams with the command:
/adm lock "red"
/adm lock "blue"

Hope this helps you out a bit.
__________________
Reply With Quote
  #6  
Old August 14th, 2009
purple86's Avatar
-=purplehaze=--rd Fun Server
 
Join Date: November 4th, 2006
Location: netherland
Posts: 168
Rep Power: 0
purple86 has disabled reputation
Default Re: SDK Gametype Coding

Darkstar wrote

/adm lock "red" "lock red"
/adm lock "blue" "lock blue" (with or without " ") ???
You can add it to mapcycle or use console

About spawn, this is a message from rpmpro forum:
rpmpro? devmap mp_shop
bind f12 spawnplaceblue or spawnplacered
press f12 where u want first spawn.. then check temp.ent for the codes.
if you use RPMPro,
do this
devmap mp_shop
stand in a spot u want someone to spawn
in console type /spawnplaceblue
check maps/temp.ent
that code insidr that file will be that SPAWN POSITION for where you clicked. you will need to do this roughly 32 times for each map and team.

Maybe it works on gold to ???
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7.