Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » ssgm Sniper
ssgm Sniper [message #324528] Mon, 31 March 2008 10:41 Go to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
what function do I change in ssgm source to enable base defenses when game mod is set to sniper gamemode=3

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: ssgm Sniper [message #324531 is a reply to message #324528] Mon, 31 March 2008 11:05 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Gen_Blacky wrote on Mon, 31 March 2008 12:41

what function do I change in ssgm source to enable base defenses when game mod is set to sniper gamemode=3


I'm at work atm so cannot be sure, catch me on msn or preferably irc in about 4-5 hours if this isnt helpful enough:

There is most likely a conditional in ssgm_base_defence (or something named similar). Look up the ::Created event. It more then likely has a conditional there that says if(gamemode ==3){
comands-destroyobj(obj);
}
It may also have other game modes listed in the if() conditional. But you get the idea...

Or it may be if(!gamemode == 1){

}

Eitherway, you need to remove the line that says destroy object.
This will result in the server never destroying the base defences for any mode, if you are using other modes for other maps then I will help you in a bit more detail.

You also will have to find where it is looking for the agt and oby. Most likely in ssgm_building there is a conditional that says if the building is an agt and the game mode doesnt == 1 or ==3 then apply damage to it.

Sorry I cannot be more specific, but I will help more later if you need it.



Re: ssgm Sniper [message #324578 is a reply to message #324528] Mon, 31 March 2008 14:14 Go to previous message
Creed3020 is currently offline  Creed3020
Messages: 1438
Registered: February 2003
Location: Toronto, Canada
Karma: 0
General (1 Star)
Thanks for mentioning how to do this. Every time I have ever asked I've been told it cannot be done, which is stupid because there is always a way.
Previous Topic: "Building repaired"-Sound
Next Topic: Server help
Goto Forum:
  


Current Time: Sat May 04 06:30:54 MST 2024

Total time taken to generate the page: 0.00678 seconds