Author Topic: Editing Scripts  (Read 1360 times)

Ok, now I've got another problem. Now, when spawning an item, the Bullettime Gun (which I called the edit) appears in the list, but the default gun doesn't. Help please?
You edited the gun so you don't have the actual default gun anymore.

did you change the ui name?

Ok, now I've got another problem. Now, when spawning an item, the Bullettime Gun (which I called the edit) appears in the list, but the default gun doesn't. Help please?

Rename the "GunImage" "GunItem" "GunProjectile" "GunTrailEmitter" (etc, theres more...) datablock names to something else...

I suggest you use Find & Replace found in decent text editor programs.

Ex.

You edited the gun so you don't have the actual default gun anymore.
I made a copy of the original. The "Weapon_Gun" is in the add-ons folder, and so is the "Weapon_Bullettime", but only Bullettime appears. And
did you change the ui name?
I only changed the UI name of the gun itself, from Gun to Bullettime Gun... am I supposed to change the UI names of emitters and all that stuff too?

Also, how do you increase the distance of the bullet?

Also, how do you increase the distance of the bullet?

In the Projectile Datablock...
Lifetime = 4000;
(Four Seconds at Default)

Am I supposed to change the UI names of emitters and all that stuff too?

Yes, including all of the Datablock names.

In the Projectile Datablock...
Lifetime = 4000;
(Four Seconds at Default)

Yes, including all of the Datablock names.
I don't really understand... I don't know what all the Datablock names is.

I don't really understand... I don't know what all the Datablock names is.

Ill give you an example, taken from the Weapon_Gun - Server.cs Script.

Red = Datablock Name. (gunShellDebris)
Blue = Datablock Type. (Debris)
Purple = Datablock Declaration.

datablock DebrisData(gunShellDebris)
{
   shapeFile = "./gunShell.dts";
   lifetime = 2.0;
   minSpinSpeed = -400.0;
   maxSpinSpeed = 200.0;
   elasticity = 0.5;
   friction = 0.2;
   numBounces = 3;
   staticOnMaxBounce = true;
   snapOnMaxBounce = false;
   fade = true;

   gravModifier = 2;
};

I probably explained that bad, but...

I probably explained that bad, but...
Yeah... I didn't understand any of that

Ok, now I've got another problem. Now, when spawning an item, the Bullettime Gun (which I called the edit) appears in the list, but the default gun doesn't. Help please?
because you edited that script, so the gun your using IS the default gun

because you edited that script, so the gun your using IS the default gun
Your wrong.

I made a copy of the original. The "Weapon_Gun" is in the add-ons folder...
-snip-


Yeah... I didn't understand any of that
find the datablock or the projectile script part, and find lifetime and change that