Final batch of swingers implemented.

This commit is contained in:
Marisa the Magician 2018-09-15 16:11:37 +02:00
commit 816ccd7b37
14 changed files with 62 additions and 52 deletions

View file

@ -284,6 +284,7 @@ Class Translocator : UTWeapon
if ( !weap ) return;
A_PlaySound("transloc/throw",CHAN_WEAPON);
invoker.FireEffect();
UTMainHandler.DoSwing(self,(FRandom[Translocator](-0.2,0.4),FRandom[Translocator](-0.2,0.7)),2,-0.3,3,SWING_Spring,2,3);
A_AlertMonsters();
Vector3 x, y, z;
[x, y, z] = Matrix4.GetAxes(pitch,angle,roll);
@ -305,6 +306,7 @@ Class Translocator : UTWeapon
if ( !weap ) return;
A_PlaySound("transloc/return",CHAN_WEAPON);
invoker.FireEffect();
UTMainHandler.DoSwing(self,(FRandom[Translocator](-0.2,-0.4),FRandom[Translocator](-0.2,0.7)),3,-1,2,SWING_Spring,2,2);
A_AlertMonsters();
if ( invoker.module && invoker.module.bAMBUSH )
{
@ -412,7 +414,7 @@ Class Translocator : UTWeapon
TLCF A 0 A_JumpIf(invoker.module,"Return");
TLCF A 0 A_ThrowModule();
TLCF ABCDEFGH 1;
TLCF IJKLMNOPQRS 1 A_WeaponReady();
TLCF IJKLMNOPQRS 1 A_WeaponReady(WRF_NOPRIMARY);
Goto Idle;
Return:
TLCF A 0 A_ReturnModule();