This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
nekohook/modules/source2013/sdk/game/server/hl2/weapon_physcannon.h
2020-08-04 13:13:01 -04:00

37 lines
1.4 KiB
C

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef WEAPON_PHYSCANNON_H
#define WEAPON_PHYSCANNON_H
#ifdef _WIN32
#pragma once
#endif
//-----------------------------------------------------------------------------
// Do we have the super-phys gun?
//-----------------------------------------------------------------------------
bool PlayerHasMegaPhysCannon();
// force the physcannon to drop an object (if carried)
void PhysCannonForceDrop(CBaseCombatWeapon *pActiveWeapon,
CBaseEntity *pOnlyIfHoldingThis);
void PhysCannonBeginUpgrade(CBaseAnimating *pAnim);
bool PlayerPickupControllerIsHoldingEntity(CBaseEntity *pPickupController,
CBaseEntity *pHeldEntity);
float PlayerPickupGetHeldObjectMass(CBaseEntity *pPickupControllerEntity,
IPhysicsObject *pHeldObject);
float PhysCannonGetHeldObjectMass(CBaseCombatWeapon *pActiveWeapon,
IPhysicsObject *pHeldObject);
CBaseEntity *PhysCannonGetHeldEntity(CBaseCombatWeapon *pActiveWeapon);
CBaseEntity *GetPlayerHeldEntity(CBasePlayer *pPlayer);
bool PhysCannonAccountableForObject(CBaseCombatWeapon *pPhysCannon,
CBaseEntity *pObject);
#endif // WEAPON_PHYSCANNON_H