Blockland Forums > Modification Help

Weapon Rate of fire

Pages: (1/3) > >>

Obibital:

Im making my first Model and editing the defualt Gun script to fit it


Where would i find the line that determines the Rate of fire/Automatic fire?

otto-san:

The reload sequence.

Which would probably be sequence 9.

Obibital:


--- Quote from: otto-san on July 14, 2010, 04:49:24 PM ---The reload sequence.

Which would probably be sequence 9.

--- End quote ---

Im sorry that didnt help :[

Here ill give you the portion of the script Put the one/s that i need to modify in Bold


--- Quote ---projectileShapeName = "add-ons/weapon_gun/bullet.dts";
   directDamage        = 30;
   directDamageType    = $DamageType::PPSH;
   radiusDamageType    = $DamageType::PPSH;

   brickExplosionRadius = 0;
   brickExplosionImpact = true;          //destroy a brick if we hit it directly?
   brickExplosionForce  = 10;
   brickExplosionMaxVolume = 1;          //max volume of bricks that we can destroy
   brickExplosionMaxVolumeFloati ng = 2;  //max volume of bricks that we can destroy if they aren't connected to the ground

   impactImpulse        = 400;
   verticalImpulse     = 400;
   explosion           = PPSHExplosion;
   particleEmitter     = ""; //bulletTrailEmitter;

   muzzleVelocity      = 90;
   velInheritFactor    = 1;

   armingDelay         = 00;
   lifetime            = 4000;
   fadeDelay           = 3500;
   bounceElasticity    = 0.5;
   bounceFriction      = 0.20;
   isBallistic         = false;
   gravityMod = 0.0;

   hasLight    = false;
   lightRadius = 3.0;
   lightColor  = "0 0 0.5";

   uiName = "PPSH Bullet";

--- End quote ---


Crysist:


--- Quote from: Obibital on July 14, 2010, 05:23:34 PM ---Im sorry that didnt help :[

Here ill give you the portion of the script Put the one/s that i need to modify in Bold


--- End quote ---
It's not in that part. The bottom where is has stuff about states.

Obibital:

Ill look there, i just figured it would be around there since the Dmg was in that spot

Pages: (1/3) > >>

Go to full version