How to add an OBGun in SSGM [message #322247] |
Fri, 14 March 2008 15:31 |
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 #322321 is a reply to message #322247] |
Sat, 15 March 2008 04:25 |
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 |
|
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);
http://www.wittebolx.com
|
|
|