Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Script request  () 1 Vote
Re: Script request [message #336258 is a reply to message #336256] Fri, 20 June 2008 16:21 Go to previous messageGo to previous message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma:
Colonel
Nice job reborn.
And here is the weather one i made!

//.cpp - Made by Heavyx101, Do not delete the Credits becausr it might cause the script to not work! 

void HeavyX101_Weather_tRain::Created(GameObject *obj) {
	Commands->Start_Timer(obj, this, 900.0, 1);
	Commands->Set_Rain(50.0f,3.5f,true);
};
void HeavyX101_Weather_tRain::Timer_Expired(GameObject *obj, int number) {
Commands->Set_Rain(0.0f,0.0f,true);
Commands->Attach_Script(obj, "HeavyX101_Weather_tSnow", "");
};

void HeavyX101_Weather_tSnow::Created(GameObject *obj) {
	Commands->Start_Timer(obj, this, 900.0, 1);
Commands->Set_Snow(2.0f,1.5f,true);
};
void HeavyX101_Weather_tSnow::Timer_Expired(GameObject *obj, int number) {
    Commands->Set_Snow(0.0f,0.0f,true);
    Commands->Attach_Script(obj, "HeavyX101_Weather_tFog", "");
};

void HeavyX101_Weather_tFog::Created(GameObject *obj) {
	Commands->Start_Timer(obj, this, 900.0, 1);
	    Commands->Set_Fog_Enable(1);
		Commands->Set_Fog_Range (0.5,55,3.5f);
};
void HeavyX101_Weather_tFog::Timer_Expired(GameObject *obj, int number) {
	Commands->Set_Fog_Enable(0);
    Commands->Attach_Script(obj, "HeavyX101_Weather_tRain", "");
};
ScriptRegistrant<HeavyX101_Weather_tFog> HeavyX101_Weather_tFog_Registrant("HeavyX101_Weather_tFog","");
ScriptRegistrant<HeavyX101_Weather_tSnow> HeavyX101_Weather_tSnow_Registrant("HeavyX101_Weather_tSnow","");
ScriptRegistrant<HeavyX101_Weather_tRain> HeavyX101_Weather_tRain_Registrant("HeavyX101_Weather_tRain","");



// .h - Made by Heavyx101, Do not delete the Credits becausr it might cause the script to not work! 
class HeavyX101_Weather_tRain : public ScriptImpClass {
	void Created(GameObject *obj);
	void Timer_Expired(GameObject *obj, int number);
};

class HeavyX101_Weather_tSnow : public ScriptImpClass {
	void Created(GameObject *obj);
	void Timer_Expired(GameObject *obj, int number);
};

class HeavyX101_Weather_tFog : public ScriptImpClass {
	void Created(GameObject *obj);
	void Timer_Expired(GameObject *obj, int number);

Just put the HeavyX101_Weather_tRain into a daves arrow. It has been tested and every thing works fine. Have fun Smile
And: If you thing i made the scripts wrong or stupid or something else, then here is the answer: i'm just a bigginer! Smile


This account is no longer being active.

[Updated on: Fri, 20 June 2008 16:21]

Report message to a moderator

 
Read Message icon1.gif
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: SSGM Plugin error :/
Next Topic: C++ script ERROr can anyone help me
Goto Forum:
  


Current Time: Sat Feb 08 16:23:10 MST 2025

Total time taken to generate the page: 0.00805 seconds