Add Silver Bullet "wasted ammo" easter egg.
This commit is contained in:
parent
5e8824843c
commit
af3161ff71
9 changed files with 508 additions and 481 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue