Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [script]AirStrike function  () 1 Vote
Re: AirStrike function [message #301141 is a reply to message #301136] Wed, 05 December 2007 05:54 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
I made it specifically for SSGM, so your server would need to be running that.
You need to download the source code to SSGM that comes with the binaries anyway. You can find this on the www.black-cell.net downloads page here http://black-cell.net/downloads/index.php?act=category&id=6
(you will want the win32 version).

Then you open up the .sln file located in the source code folder with microsoft visual studio. If you do not have visual studio installed and set up, then you can see this post here created by JohnWill for exactly that purpose:
http://www.renegadeforums.com/index.php?t=msg&goto=296486&rid=3415&s rch=express#msg_296486

You add most of the code to the gm_main.cpp file, but there is some that goes in the gm_main.h file and the engine_gm.cpp and the engine_gm.h file.
Obviously you need to compile it aswell.

The cinematics need to be copy/pasted into there own .txt files and named what I have put just above the code tags and placed in your servers data folder.

You could call the function with a chat hook for testing, but ideally you will call the function some other way to add to gameplay.

chat hook example:

class GDIa10ChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
		Commands->Attach_Script(obj,"reb_GDI_a10_strike","");
	}
};
ChatCommandRegistrant<GDIa10ChatCommand> GDIa10ChatCommandReg("!a10g",CHATTYPE_TEAM,0,GAMEMODE_AOW);

class NodjetChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
		Commands->Attach_Script(obj,"reb_Nod_Jet_strike","");
	}
};
ChatCommandRegistrant<NodjetChatCommand> NodjetChatCommandReg("!a10n",CHATTYPE_TEAM,0,GAMEMODE_AOW);



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [skin]Codename Havoc - hotwire replacement
Next Topic: [script]Parachute function
Goto Forum:
  


Current Time: Sat May 11 20:23:47 MST 2024

Total time taken to generate the page: 0.01354 seconds