Add Silver Bullet "wasted ammo" easter egg.

This commit is contained in:
Mari the Deer 2021-12-26 12:44:00 +01:00
commit af3161ff71
9 changed files with 508 additions and 481 deletions

View file

@ -233,6 +233,8 @@ Class SilverBullet : SWWMWeapon
int rezoom;
bool proneme;
int wastecycle; // for easter egg
State dezoomstate;
Property ClipCount : clipcount;
@ -746,6 +748,12 @@ Class SilverBullet : SWWMWeapon
c.vel = x*FRandom[Junk](-.5,.5)+y*FRandom[Junk](4,8)-(0,0,FRandom[Junk](1,3));
c.vel += vel*.5;
}
invoker.wastecycle++;
if ( (invoker.wastecycle >= 5) && CheckLocalView() && !swwm_silveregg )
{
CVar.GetCVar('swwm_silveregg').SetBool(true);
Console.MidPrint(null,"swwmsilverbulleteasteregg");
}
}
action void A_DropMag()
{