Home » Renegade Discussions » Mod Forum » Script Request
() 1 Vote
Re: Script Request [message #330528 is a reply to message #330473] |
Wed, 14 May 2008 11:44 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma:
|
General (4 Stars) |
|
|
reborn wrote on Wed, 14 May 2008 02:48 | typedef void (*_Set_Clouds) (float Cover,float Gloominess,float Transition);
typedef void (*_Set_Lightning) (float Intensity,float StartDistance,float EndDistance,float Heading,float Distribution,float Transition);
typedef void (*_Set_War_Blitz) (float Intensity,float StartDistance,float EndDistance,float Heading,float Distribution,float Transition);
typedef void (*_Set_Wind) (float Heading,float Speed,float Variability,float Transition);
typedef void (*_Set_Rain) (float Density,float Transition,bool Unused);
typedef void (*_Set_Snow) (float Density,float Transition,bool Unused);
typedef void (*_Set_Ash) (float Density,float Transition,bool Unused);
typedef void (*_Set_Fog_Enable) (bool Enable);
typedef void (*_Set_Fog_Range) (float StartDistance,float EndDistance,float Transition);
|
lol so im guessing thats all the weather changes.....now i got to figure out how to put them in a chat hook....sorry i know im c++ retarted but im guessing the way it is now wont work?
i think i understand some so let me try it out
1>.\gmmain.cpp(1592) : error C2039: 'Set_lightning' : is not a member of 'ScriptCommands'
1> c:\users\lil blueyes\desktop\ssgm source\ssgm source\ssgm source\scripts.h(695) : see declaration of 'ScriptCommands'
1>.\gmmain.cpp(1600) : error C2039: 'Set_lightning' : is not a member of 'ScriptCommands'
1> c:\users\lil blueyes\desktop\ssgm source\ssgm source\ssgm source\scripts.h(695) : see declaration of 'ScriptCommands'
1>.\gmmain.cpp(1642) : fatal error C1071: unexpected end of file found in comment
i get that message when i try to do lightning
how can i fix it?
class cloudsChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
Commands->Set_Clouds(10.5f,20.0f,9.5f);
}
};
ChatCommandRegistrant<cloudsChatCommand> cloudsChatCommandReg("!clouds",CHATTYPE_ALL,0,GAMEMODE_ALL);
class cloudsoffChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
Commands->Set_Clouds(0.0f,0.0f,0.0f);
}
};
ChatCommandRegistrant<cloudsoffChatCommand> cloudsoffChatCommandReg("!cloudsoff",CHATTYPE_ALL,0,GAMEMODE_ALL);
for the clouds.....the !clouds wont work but the !cloudsoff works....how can i get the !clouds to work
class windChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
Commands->Set_Wind(20.7f,15.0f,5.0f,3.5f);
}
};
ChatCommandRegistrant<windChatCommand> windChatCommandReg("!wind",CHATTYPE_ALL,0,GAMEMODE_ALL);
is there something im missing?
ps sorry its kinda alot i really am trying my best i got !snow to work and understood a little bit of it but im still...well...ya please and thank you[/size]
[Updated on: Wed, 14 May 2008 15:11] Report message to a moderator
|
|
|
|
|
Script Request
|
|
|
Re: Script Request
By: reborn on Sun, 11 May 2008 12:27
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: reborn on Sun, 11 May 2008 16:06
|
|
|
Re: Script Request
By: reborn on Mon, 12 May 2008 02:36
|
|
|
Re: Script Request
By: reborn on Tue, 13 May 2008 01:39
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: cAmpa on Mon, 12 May 2008 00:32
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: ExEric3 on Mon, 12 May 2008 22:01
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: reborn on Wed, 14 May 2008 02:48
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: jonwil on Wed, 14 May 2008 20:37
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: reborn on Thu, 15 May 2008 03:02
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: jnz on Fri, 16 May 2008 01:55
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: reborn on Sun, 18 May 2008 02:48
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: reborn on Sun, 18 May 2008 03:00
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: reborn on Sun, 18 May 2008 03:12
|
|
|
Re: Script Request
|
|
|
Re: Script Request
By: reborn on Sun, 18 May 2008 03:29
|
|
|
Re: Script Request
|
Goto Forum:
Current Time: Sun Jan 26 18:00:10 MST 2025
Total time taken to generate the page: 0.01139 seconds
|