Home » Renegade Discussions » Mod Forum » scripts.dll 1.5.1/1.6
scripts.dll 1.5.1/1.6 [message #78098] |
Fri, 09 April 2004 17:33 |
[REHT]Spirit
Messages: 277 Registered: April 2003
Karma:
|
Recruit |
|
|
Sure, no problem
void Reborn_Deployable_Vehicle::Custom(GameObject * obj,int message,int param,GameObject * sender)
{
Vector3 nppos;
Vector3 vpos;
if (message == 1000000028) {
pilotID = Commands->Get_ID(sender);
}
if (message == 1000000029) {
pilotID = 0;
nppos = Get_Vector3_Parameter("LeaveOffset");
vpos = Commands->Get_Position(obj);
nppos.X += vpos.X;
nppos.Y += vpos.Y;
nppos.Z += vpos.Z;
Commands->Set_Position(sender,nppos);
}
}
can become
void Reborn_Deployable_Vehicle::Custom(GameObject * obj,int message,int param,GameObject * sender)
{
if (message == 1000000028) {
pilotID = Commands->Get_ID(sender);
}
if (message == 1000000029) {
pilotID = 0;
}
}
and
void Reborn_Deployable_Vehicle::Killed(GameObject * obj,GameObject * shooter)
{
if (pilotID != 0)
Commands->Set_Position(Commands->Find_Object(pilotID),Get_Vector3_Parameter("LeaveOffset"));
}
can be deleted completely actually.
Probally also want to change
ScriptRegistrant<Reborn_Deployable_Vehicle> Reborn_Deployable_Vehicle_Registrant ("Reborn_Deployable_Vehicle","Animated_Preset:string,Explosion_Preset:string,LeaveOffset:Vector3");
to
ScriptRegistrant<Reborn_Deployable_Vehicle> Reborn_Deployable_Vehicle_Registrant ("Reborn_Deployable_Vehicle","Animated_Preset:string,Explosion_Preset:string");
so the parameter is taken out and people aren't as confused (I say as I write a post full of C++ code in a public forum).
|
|
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Tue, 06 April 2004 04:47
|
|
|
scripts.dll 1.5.1/1.6
By: Slash0x on Tue, 06 April 2004 09:45
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: Cebt on Tue, 06 April 2004 15:37
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Tue, 06 April 2004 18:41
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: NeoSaber on Tue, 06 April 2004 20:02
|
|
|
scripts.dll 1.5.1/1.6
By: Alkaline on Wed, 07 April 2004 01:21
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Wed, 07 April 2004 01:36
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Wed, 07 April 2004 05:45
|
|
|
scripts.dll 1.5.1/1.6
By: laeubi on Wed, 07 April 2004 06:52
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: Slash0x on Wed, 07 April 2004 18:02
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: drunkill on Wed, 07 April 2004 19:47
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Wed, 07 April 2004 21:09
|
|
|
scripts.dll 1.5.1/1.6
By: drunkill on Thu, 08 April 2004 07:47
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: Deth7 on Thu, 08 April 2004 17:13
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Thu, 08 April 2004 18:59
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Thu, 08 April 2004 19:21
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Thu, 08 April 2004 20:22
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Thu, 08 April 2004 22:54
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Thu, 08 April 2004 23:26
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: drunkill on Fri, 09 April 2004 01:09
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Fri, 09 April 2004 16:49
|
|
|
scripts.dll 1.5.1/1.6
|
|
|
complete list of changes for 1.6
By: jonwil on Sat, 10 April 2004 01:10
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Sat, 10 April 2004 18:51
|
|
|
scripts.dll 1.5.1/1.6
By: jonwil on Sat, 10 April 2004 21:12
|
Goto Forum:
Current Time: Mon Dec 02 15:56:34 MST 2024
Total time taken to generate the page: 0.01762 seconds
|