Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » How to add an OBGun in SSGM
How to add an OBGun in SSGM [message #322247] Fri, 14 March 2008 15:31 Go to next message
MacKinsey is currently offline  MacKinsey
Messages: 83
Registered: March 2008
Karma: 0
Recruit
Hi, i want to add an Obigun in SSGM, i got the presets:
Weapon_Obelisk = Obi Gun
Weapon_AGT_Missile = AGT Gun
And now, when i add them as Default for the normal engie
[DefaultEngL1]
01=CnC_POW_MineTimed_Player_01
02=POW_Pistol_Player
03=Weapon_Obelisk
04=Weapon_AGT_Missile
They dont appear ingame at the engie.
How to fix that
Re: How to add an OBGun in SSGM [message #322248 is a reply to message #322247] Fri, 14 March 2008 15:43 Go to previous messageGo to next message
GrimmNL is currently offline  GrimmNL
Messages: 120
Registered: June 2005
Location: Netherlands, Almere
Karma: 0
Recruit
well i'm guess you need to make custom weapons to which you give the ob ray or agt missle, then give THOSE to the engi.

right now the engi doenst have a weapon (a model) to hold, just a type of weapon.


Xfire account: GrimmNL
http://members.lycos.nl/signature/grimm
Re: How to add an OBGun in SSGM [message #322274 is a reply to message #322247] Fri, 14 March 2008 18:09 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
Both guns uses the PIC's gun model..
Re: How to add an OBGun in SSGM [message #322275 is a reply to message #322247] Fri, 14 March 2008 18:13 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
You need to create a powerup in level edit.
Re: How to add an OBGun in SSGM [message #322316 is a reply to message #322247] Sat, 15 March 2008 03:29 Go to previous messageGo to next message
cpjok is currently offline  cpjok
Messages: 425
Registered: September 2007
Karma: 0
Commander
What I Did Was Edit POW_Ammo_Regeneration And POW_Double_Damage In LE

On Reneration You Edit It Add Weapon In Settings Bit And Tick Always Grant Powerup

Same With Double Damage Just OB Gun Instead Of AGT Gun

Then Cross Off LE Go Imto Mod Package The Preset Copy Objects.ddb And Paste Into Server Data Folder Rename As Objects.gm then its done just need to make lua could or addit to a spawner
Re: How to add an OBGun in SSGM [message #322321 is a reply to message #322247] Sat, 15 March 2008 04:25 Go to previous messageGo to next message
Reaver11 is currently offline  Reaver11
Messages: 888
Registered: April 2007
Karma: 1
Colonel
You head over to object->powerup->soldierpowerups->Upgrade powerups

And then go to the double damage / mobius shield (those are most commenly used)

Double for the ob
Mobius for the agt

Click the mobius shield and press mod

Goto GrantweaponID Select the agt weapon.
Then check these boxes ->
Grantweapon
AlwaysAllowGrant

If you want your gun to have clips when pickup->
Check that box and/or set the weapon rounds

Anyways there also is a pretty nice videotutorial on renhelp
http://www.renhelp.net/index.php?mod=Tutorials&action=view&id=110

Good luck.
Re: How to add an OBGun in SSGM [message #322325 is a reply to message #322247] Sat, 15 March 2008 06:24 Go to previous message
wittebolx is currently offline  wittebolx
Messages: 332
Registered: May 2007
Location: the netherlands
Karma: 0
Recruit
this works only if your PP is online and when you have modded the preset ''POW_Double_Damage'' in objects.gm

class ddamageChatCommand : public ChatCommandClass {
   void Triggered(int ID,const TokenClass &Text,int ChatType) {
      GameObject *obj = Get_GameObj(ID);
float Credits = Commands->Get_Money(obj);
Vector3 position;
position = Commands->Get_Position(obj);
if(!Is_Building_Dead(Find_Power_Plant(Get_Team(ID))))
{
if(Credits >= 5000){
   Commands->Give_Money(obj,-5000,false);
char message[256];
sprintf(message,"msg [WGC]: %s just Upgraded his Weapons Arsenal with a Obelisk Gun", Get_Player_Name_By_ID(ID));
Console_Input(message);      
Commands->Give_Powerup(obj,"POW_Double_Damage",false);
Commands->Set_Position(obj,position);
   }
else{
Console_Input(StrFormat("ppage %d You need $5000, Your Power Plant needs to be Online!.",Get_Player_ID(obj)).c_str());      
}
}
   }
};
ChatCommandRegistrant<ddamageChatCommand> ddamageChatCommandReg("!obby",CHATTYPE_TEAM,0,GAMEMODE_AOW);


Previous Topic: [script]Code Release - Kamikaze Suit Crate
Next Topic: Calling all Star Wars fans.
Goto Forum:
  


Current Time: Sat Nov 02 07:20:14 MST 2024

Total time taken to generate the page: 0.01285 seconds