Battlezone Universe

Battlezone Universe => Archive Vault => Public 1.3 Beta 2 Archive => Topic started by: appel on March 05, 2006, 11:21:37 PM

Title: Warrior with EMP
Post by: appel on March 05, 2006, 11:21:37 PM
Nobody has a problem with the warrior bouncing 200m in the air when it uses EMP gun, and basicly *flying* away like it was a mortar bike?

Making units bounce off the terrain is the cause, since in 1.2 the warrior only gains a slight speed for an instance and you don't bounce off the terrain in 1.2.
Title: Re: Warrior with EMP
Post by: Red Devil on March 05, 2006, 11:28:15 PM
This is why it is important for this beta patch to be tested by everybody.  Everybody doesn't test or play the same way, so things slip through.

Sounds like it needs the Mass setting applied to it.  Try shooting other units like the Constructor and ST's  They should fly too.
Title: Re: Warrior with EMP
Post by: Angstromicus on March 05, 2006, 11:37:58 PM
Mass affects kick velocity/omega? I would have no idea. I thought the only thing that affected kick velocity/omega was how far away you were from the center of the explosion and how big the kick velocity/omega field was. (Why bigger units are less affected by explosions I'm sure).
Title: Re: Warrior with EMP
Post by: Red Devil on March 05, 2006, 11:46:39 PM
From the CL:

Mass = -1 // If <= 0, uses default of Sphere(Width*Height*Breadth) * 800.0. Peek in an ascii-saved .sav or .bzn file to determine what things already have

This means that Mass was hard-coded before PB2.  Nathan broke it out of the code so we could adjust it in the ODF's.

Using it, I made an ST pretty much unbudgeable.

To test it, I added a kick to laser explosions and just started blasting stuff (fun).  Unfortunately, it was mostly tested on ISDF units, hence appel's discovery.
Title: Re: Warrior with EMP
Post by: Spawn on March 06, 2006, 12:26:18 AM
Problem with making warrior more massive is it will be able to push things better.
From the changelog, maybe increasing the ground elasticity will help.
[CraftClass]
chunkEffect1 .. chunkEffect5 = "iochnk01.xsi" .. "iochnk05.xsi" // chunks from craft. Note that .xsi MUST be present.
// elasticity
MIN_BOUNCE_VEL = 0.5
OBJECT_ELASTICITY = 0.125
GROUND_ELASTICITY = 0.03125
// spin rates for collision
X_SPIN_RATE = 1.5707963267948966 // = 0.5f * PI;
Y_SPIN_RATE = 3.1415926535897932 // = PI;
Z_SPIN_RATE = 0.7853981633974483 // = 0.25f * PI;
// Other constants
DAMAGE_SCALE = 0.05 // Scale in turning velocity into damage, on craft:ground or craft:building collisions
MAX_PILOT_HORIZ_VELOCITY = 25.0 // Max horizontal velocity a pilot can have when ejecting
RECYCLE_TASK_DIST = 10.0 // How far from the recycler until we're 'done' and recycle
Title: Re: Warrior with EMP
Post by: OvermindDL1 on March 06, 2006, 03:57:19 AM
Higher elasticity I'd think would make things bounce higher upon hit.
Title: Re: Warrior with EMP
Post by: Red Devil on March 06, 2006, 04:42:03 AM
Shocks would do that.  Ground/object_elasticity is how much resistance it has.  Both together affect the vehicle.
Title: Re: Warrior with EMP
Post by: Angstromicus on March 06, 2006, 03:10:05 PM
Higher elasticity ='s more bouncing and bigger bouncing.