More noticeable Spreadgun impacts.
Lamp is no longer shootable.
This commit is contained in:
parent
83585826d2
commit
bcd2577fc7
3 changed files with 8 additions and 10 deletions
|
|
@ -22,7 +22,7 @@ Class PusherImpact : Actor
|
|||
Vector3 x = (cos(angle)*cos(pitch),sin(angle)*cos(pitch),-sin(pitch));
|
||||
for ( int i=0; i<numpt; i++ )
|
||||
{
|
||||
Vector3 pvel = (-x+(FRandom[Pusher](-.8,.8),FRandom[Pusher](-.8,.8),FRandom[Pusher](-.8,.8))).unit()*FRandom[Pusher](.1,1.2);
|
||||
Vector3 pvel = (x+(FRandom[Pusher](-.8,.8),FRandom[Pusher](-.8,.8),FRandom[Pusher](-.8,.8))).unit()*FRandom[Pusher](.1,1.2);
|
||||
let s = Spawn("SWWMSmoke",pos);
|
||||
s.vel = pvel;
|
||||
s.SetShade(Color(1,1,1)*Random[Pusher](128,192));
|
||||
|
|
|
|||
|
|
@ -1015,10 +1015,7 @@ Class CompanionLamp : Actor
|
|||
{
|
||||
Tag "$T_LAMP";
|
||||
+NOGRAVITY;
|
||||
+SHOOTABLE;
|
||||
+NOTELEPORT;
|
||||
+NODAMAGE;
|
||||
+NOBLOOD;
|
||||
+DONTSPLASH;
|
||||
+INTERPOLATEANGLES;
|
||||
+LOOKALLAROUND;
|
||||
|
|
|
|||
|
|
@ -225,28 +225,28 @@ Class SpreadImpact : Actor
|
|||
Super.PostBeginPlay();
|
||||
A_StartSound("spreadgun/pellet",CHAN_VOICE,CHANF_DEFAULT,.4,4.);
|
||||
A_SprayDecal("TinyBulletChip",-20);
|
||||
int numpt = Random[Spreadgun](-2,2);
|
||||
int numpt = Random[Spreadgun](2,4);
|
||||
Vector3 x = (cos(angle)*cos(pitch),sin(angle)*cos(pitch),-sin(pitch));
|
||||
for ( int i=0; i<numpt; i++ )
|
||||
{
|
||||
Vector3 pvel = (-x+(FRandom[Spreadgun](-.8,.8),FRandom[Spreadgun](-.8,.8),FRandom[Spreadgun](-.8,.8))).unit()*FRandom[Spreadgun](.1,1.2);
|
||||
Vector3 pvel = (x+(FRandom[Spreadgun](-.8,.8),FRandom[Spreadgun](-.8,.8),FRandom[Spreadgun](-.8,.8))).unit()*FRandom[Spreadgun](.1,1.2);
|
||||
let s = Spawn("SWWMSmoke",pos);
|
||||
s.vel = pvel;
|
||||
s.scale *= .6;
|
||||
s.special1 = Random[Spreadgun](0,1);
|
||||
s.SetShade(Color(1,1,1)*Random[Spreadgun](96,192));
|
||||
}
|
||||
numpt = Random[Spreadgun](-3,3);
|
||||
numpt = Random[Spreadgun](1,3);
|
||||
for ( int i=0; i<numpt; i++ )
|
||||
{
|
||||
Vector3 pvel = (FRandom[Spreadgun](-1,1),FRandom[Spreadgun](-1,1),FRandom[Spreadgun](-1,1)).unit()*FRandom[Spreadgun](2,8);
|
||||
let s = Spawn("SWWMSpark",pos);
|
||||
s.vel = pvel;
|
||||
}
|
||||
numpt = Random[Spreadgun](-2,2);
|
||||
numpt = Random[Spreadgun](2,5);
|
||||
for ( int i=0; i<numpt; i++ )
|
||||
{
|
||||
Vector3 pvel = (FRandom[Spreadgun](-1,1),FRandom[Spreadgun](-1,1),FRandom[Spreadgun](-1,1)).unit()*FRandom[Spreadgun](2,8);
|
||||
Vector3 pvel = (FRandom[Spreadgun](-1,1),FRandom[Spreadgun](-1,1),FRandom[Spreadgun](-1,1)).unit()*FRandom[Spreadgun](1,4);
|
||||
let s = Spawn("SWWMChip",pos);
|
||||
s.vel = pvel;
|
||||
}
|
||||
|
|
@ -274,9 +274,10 @@ Class SlugImpact : Actor
|
|||
Vector3 x = (cos(angle)*cos(pitch),sin(angle)*cos(pitch),-sin(pitch));
|
||||
for ( int i=0; i<numpt; i++ )
|
||||
{
|
||||
Vector3 pvel = (-x+(FRandom[Spreadgun](-.8,.8),FRandom[Spreadgun](-.8,.8),FRandom[Spreadgun](-.8,.8))).unit()*FRandom[Spreadgun](.1,1.2);
|
||||
Vector3 pvel = (x+(FRandom[Spreadgun](-.4,.4),FRandom[Spreadgun](-.4,.4),FRandom[Spreadgun](-.4,.4))).unit()*FRandom[Spreadgun](.4,2.);
|
||||
let s = Spawn("SWWMSmoke",pos);
|
||||
s.vel = pvel;
|
||||
s.scale *= 1.4;
|
||||
s.special1 = Random[Spreadgun](0,2);
|
||||
s.SetShade(Color(1,1,1)*Random[Spreadgun](96,192));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue