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 |
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 #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);
|
|
|
Goto Forum:
Current Time: Mon Dec 30 15:46:24 MST 2024
Total time taken to generate the page: 0.00860 seconds
|