mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-13 00:18:06 +00:00
Hornet tweak
This commit is contained in:
parent
8be1abd7b8
commit
46450bf7ee
@ -424,6 +424,8 @@ void CHornet::DieTouch( CBaseEntity *pOther )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( !pev->owner )
|
||||||
|
pev->owner = edict();
|
||||||
pOther->TakeDamage( pev, VARS( pev->owner ), pev->dmg, DMG_BULLET );
|
pOther->TakeDamage( pev, VARS( pev->owner ), pev->dmg, DMG_BULLET );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +48,14 @@ public:
|
|||||||
void EXPORT TrackTouch( CBaseEntity *pOther );
|
void EXPORT TrackTouch( CBaseEntity *pOther );
|
||||||
void EXPORT DartTouch( CBaseEntity *pOther );
|
void EXPORT DartTouch( CBaseEntity *pOther );
|
||||||
void EXPORT DieTouch( CBaseEntity *pOther );
|
void EXPORT DieTouch( CBaseEntity *pOther );
|
||||||
|
virtual float TouchGravGun( CBaseEntity *attacker, int stage )
|
||||||
|
{
|
||||||
|
pev->owner = attacker->edict();
|
||||||
|
pev->dmg *= 2;
|
||||||
|
if( m_pfnThink == &CBaseEntity::SUB_Remove )
|
||||||
|
pev->nextthink = gpGlobals->time + 1;
|
||||||
|
return 1000;
|
||||||
|
}
|
||||||
|
|
||||||
int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );
|
int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user