Skip to content

Animation Extensions

KernCore edited this page Aug 13, 2024 · 11 revisions

This is a list of the animation extensions that can be used for custom weapons and players.
Use the parameter szAnimExt in the method below inside the CBasePlayerWeapon class to set them.

CBasePlayerWeapon MethodDescription
bool DefaultDeploy(conststring& in szViewModel, conststring& in szWeaponModel, int iAnim, conststring& in szAnimExt, int skiplocal = 0, int body = 0)Deploys the Weapon. Parameters: Viewmodel, Playermodel, Viewmodel Animation, Animation Extension, Clientside prediction (Always use 0), Viewmodel Bodygroup.

It can also be used in m_szAnimExtension inside the CBasePlayer class.

CBasePlayer MethodDescription
string get_m_szAnimExtension() constGets the current animation extension.
void set_m_szAnimExtension(conststring& in szAnimExtension)Sets the current animation extension.

Below are all the Animation Extensions that can be used in the methods above:

Extension StringExtension Description
crowbarCrowbar
wrenchPipe Wrench (When winding it up/swinging it)
grenGrenade
tripTripmine/Satchel/Medkit
onehandedPistol/Deagle/Single Uzi
python.357 Magnum
gaussGauss
mp5MP5
shotgunShotgun
rpgRPG
egonEgon
squeakSnarks
hiveHive Hand/Barnacle
bowCrossbow/Shockrifle
bowscopeCrossbow (Aiming)
uzisDouble Uzis
uzis_rightDouble Uzis (When only shooting/reloading the Right Uzi)
uzis_leftDouble Uzis (When only shooting/reloading the Left Uzi)
m16M16
m203M16 (When only shooting/reloading the Grenade Launcher)
sniperSniper Rifle
sniperscopeSniper Rifle (Aiming)
sawM249
minigunMinigun

Clone this wiki locally