mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 02:24:28 +00:00
Use int instead of float in pitdrone's BodyChange (#147)
This commit is contained in:
parent
fdbce18498
commit
562e4bdb64
@ -223,7 +223,7 @@ public:
|
|||||||
void PainSound(void);
|
void PainSound(void);
|
||||||
void AlertSound(void);
|
void AlertSound(void);
|
||||||
void DeathSound(void);
|
void DeathSound(void);
|
||||||
void BodyChange(float spikes);
|
void BodyChange(int spikes);
|
||||||
int TakeDamage(entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType);
|
int TakeDamage(entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType);
|
||||||
int IgnoreConditions(void);
|
int IgnoreConditions(void);
|
||||||
Schedule_t* GetSchedule(void);
|
Schedule_t* GetSchedule(void);
|
||||||
@ -595,7 +595,7 @@ int CPitdrone::Classify(void)
|
|||||||
return CLASS_RACEX_PREDATOR;
|
return CLASS_RACEX_PREDATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPitdrone::BodyChange(float horns)
|
void CPitdrone::BodyChange(int horns)
|
||||||
{
|
{
|
||||||
if (horns <= 0)
|
if (horns <= 0)
|
||||||
SetBodygroup(HORNGROUP, PITDRONE_HORNS0);
|
SetBodygroup(HORNGROUP, PITDRONE_HORNS0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user