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_7777777.c

34 lines
647 B
C

// Copyright © 2016-2017 Graham Sanderson, all rights reserved.
#include "lith_upgrades_common.h"
// Extern Functions ----------------------------------------------------------|
//
// Activate
//
void Upgr_7777777_Activate(struct player *p, upgrade_t *upgr)
{
ACS_SetActorPropertyFixed(0, APROP_Gravity, 0.0);
}
//
// Deactivate
//
void Upgr_7777777_Deactivate(struct player *p, upgrade_t *upgr)
{
ACS_SetActorPropertyFixed(0, APROP_Gravity, 1.0);
}
//
// Update
//
script void Upgr_7777777_Update(struct player *p, upgrade_t *upgr)
{
fixed vel = -2;
if(p->velz > 0) vel = p->velz;
p->setVel(p->velx, p->vely, vel);
}
// EOF