marrub
/
Lithia
Archived
1
0
Fork 0
This repository has been archived on 2023-06-17. You can view files and clone it, but cannot push or open issues/pull-requests.
Lithia/source/Main/u_goldeneye.c

21 lines
523 B
C

// Copyright © 2016-2017 Graham Sanderson, all rights reserved.
#include "lith_upgrades_common.h"
// Extern Functions ----------------------------------------------------------|
//
// Update
//
script void Upgr_Goldeneye_Update(struct player *p, upgrade_t *upgr)
{
if(ACS_Random(0, 0x7F) < 0x50)
{
fixed dist = ACS_RandomFixed(128, 256);
fixed angl = ACS_RandomFixed(0, 1);
ACS_SpawnForced("Lith_GEExplosion", p->x + ACS_Cos(angl) * dist, p->y + ACS_Sin(angl) * dist, p->z + 32);
}
}
// EOF