L L4D2node

CTerrorWeapon

10 own methods · 77 inherited · extends CBaseAnimatingCBaseEntity

Weapon

Methods

callable on a CTerrorWeapon script handle
Script Function Returns Parameters Description
Clip1 int none none
Clip2 int none none
GetDefaultClip1 int none none
GetDefaultClip2 int none none
GetMaxClip1 int none none
GetMaxClip2 int none none
GiveDefaultAmmo void none none
Reload bool none none
SetClip1 (ScriptSetClip1) void none none
SetClip2 (ScriptSetClip2) void none none

Inherited methods

reachable up the C++ base chain
Script Function Returns Parameters Description / from
FindBodygroupByName int cstring Find a bodygroup id by name ↑ CBaseAnimating
GetAttachmentAngles (ScriptGetAttachmentAngles) QAngle int Get the attachement id's angles as a p,y,r vector ↑ CBaseAnimating
GetAttachmentBone int int Get the named attachement's parent bone index ↑ CBaseAnimating
GetAttachmentOrigin (ScriptGetAttachmentOrigin) Vector int Get the attachement id's origin vector ↑ CBaseAnimating
GetBodygroup int int Get a bodygroup by id ↑ CBaseAnimating
GetBodygroupName cstring int Get the bodygroup id's name ↑ CBaseAnimating
GetBodygroupPartName cstring int, int Get name by group and part ↑ CBaseAnimating
GetBoneAngles (ScriptGetBoneAngles) QAngle int Get the bone id's angles as a p,y,r vector ↑ CBaseAnimating
GetBoneOrigin (ScriptGetBoneOrigin) Vector int Get the bone id's origin vector ↑ CBaseAnimating
GetModelScale float none none ↑ CBaseAnimating
GetSequence int none Get the current sequence id ↑ CBaseAnimating
GetSequenceActivityName cstring int Get the activity name for a sequence by id ↑ CBaseAnimating
GetSequenceDuration (ScriptGetSequenceDuration) float int Get a sequence duration by id ↑ CBaseAnimating
GetSequenceName cstring int Get a sequence name by id ↑ CBaseAnimating
IsSequenceFinished bool none Ask whether the main sequence is done playing ↑ CBaseAnimating
LookupActivity int cstring Get the named activity index ↑ CBaseAnimating
LookupAttachment int cstring Get the named attachement id ↑ CBaseAnimating
LookupBone int cstring Get the named bone index ↑ CBaseAnimating
LookupSequence int cstring Looks up a sequence by sequence name or activity name ↑ CBaseAnimating
ResetSequence void int Reset a sequence by id. If the id is different than the current sequence, switch to the new sequence ↑ CBaseAnimating
SetBodygroup void int, int Sets a bodygroup ↑ CBaseAnimating
SetModelScale void float, float (scale, change_duration) Changes a model's scale over time ↑ CBaseAnimating
SetPoseParameter (ScriptSetPoseParameter) float int, float (id, value) Sets a pose parameter value ↑ CBaseAnimating
SetSequence void int Set a sequence by id ↑ CBaseAnimating
__KeyValueFromInt (KeyValueFromInt) bool cstring, float @ ↑ CBaseEntity
__KeyValueFromString (KeyValueFromString) bool cstring, cstring @ ↑ CBaseEntity
__KeyValueFromVector (KeyValueFromVector) bool cstring, Vector @ ↑ CBaseEntity
ApplyAbsVelocityImpulse void Vector Apply a Velocity Impulse ↑ CBaseEntity
ApplyLocalAngularVelocityImpulse void Vector Apply an Ang Velocity Impulse ↑ CBaseEntity
ConnectOutput (ConnectOutputToScript) void cstring, cstring Adds an I/O connection that will call the named function when the specified output fires ↑ CBaseEntity
DisconnectOutput (DisconnectOutputFromScript) void cstring, cstring Removes a connected script function from an I/O event. ↑ CBaseEntity
FirstMoveChild (ScriptFirstMoveChild) hscript none none ↑ CBaseEntity
GetAngles (GetAbsAngles) QAngle none none ↑ CBaseEntity
GetBaseVelocity Vector none Get Base? velocity ↑ CBaseEntity
GetCenter (ScriptGetWorldSpaceCenter) Vector none Get world space center of object - absolute coords ↑ CBaseEntity
GetClassname cstring none none ↑ CBaseEntity
GetContext (GetContextForScript) unknown(0x21) cstring GetContext( name ): looks up a context and returns it if available. May return string, float, or null (if the context isn't found) ↑ CBaseEntity
GetEntityHandle (ScriptGetEHandle) unknown(0x1e) none Get the entity as an EHANDLE ↑ CBaseEntity
GetEntityIndex (entindex) int none none ↑ CBaseEntity
GetForwardVector (ScriptGetForward) Vector none Get the forward vector of the entity ↑ CBaseEntity
GetHealth int none none ↑ CBaseEntity
GetLocalAngles QAngle none none ↑ CBaseEntity
GetLocalAngularVelocity QAngle none Maybe local angvel ↑ CBaseEntity
GetLocalOrigin Vector none none ↑ CBaseEntity
GetLocalVelocity Vector none Get Entity relative velocity ↑ CBaseEntity
GetMaxHealth int none none ↑ CBaseEntity
GetModelName (ScriptGetModelName) cstring none none ↑ CBaseEntity
GetMoveParent (ScriptGetMoveParent) hscript none If in hierarchy, retrieves the entity's parent ↑ CBaseEntity
GetName (GetEntityNameAsCStr) cstring none none ↑ CBaseEntity
GetOrigin (GetAbsOrigin) Vector none none ↑ CBaseEntity
GetOwnerEntity (ScriptGetOwnerEntity) hscript none Get the owner entity, if there is one ↑ CBaseEntity
GetPreTemplateName cstring none Get the entity name stripped of template unique decoration ↑ CBaseEntity
GetRootMoveParent (ScriptGetRootMoveParent) hscript none If in hierarchy, walks up the hierarchy to find the root parent ↑ CBaseEntity
GetScriptScope hscript none Retrieve the script-side data associated with an entity ↑ CBaseEntity
GetVelocity (GetAbsVelocity) Vector none none ↑ CBaseEntity
IsPlayer bool none none ↑ CBaseEntity
Kill (ScriptInputKill) void none none ↑ CBaseEntity
NextMovePeer (ScriptNextMovePeer) hscript none none ↑ CBaseEntity
OverrideFriction void float, float Takes duration, value for a temporary override ↑ CBaseEntity
PrecacheModel (ScriptPrecacheModel) int cstring none ↑ CBaseEntity
PrecacheScriptSound (Script_PrecacheScriptSound) void cstring none ↑ CBaseEntity
SetAngles (SetAbsAngles) void QAngle none ↑ CBaseEntity
SetContext (AddContextForScript) void cstring, cstring, float SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a string. Will last for duration (set -1 to mean 'forever'). ↑ CBaseEntity
SetContextNum (AddContextForScriptNumeric) void cstring, float, float SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (int or float). Will last for duration (set -1 to mean 'forever'). ↑ CBaseEntity
SetForwardVector (ScriptSetForward) void Vector Set the orientation of the entity to have this forward vector ↑ CBaseEntity
SetFriction void float Set PLAYER friction, ignored for objects ↑ CBaseEntity
SetGravity void float Set PLAYER gravity, ignored for objects ↑ CBaseEntity
SetHealth void int none ↑ CBaseEntity
SetLocalAngles void QAngle none ↑ CBaseEntity
SetLocalOrigin void Vector none ↑ CBaseEntity
SetMaxHealth void int none ↑ CBaseEntity
SetModel void cstring Set a model for this entity ↑ CBaseEntity
SetOrigin (ScriptSetOrigin) void Vector none ↑ CBaseEntity
SetVelocity (SetAbsVelocity) void Vector none ↑ CBaseEntity
TakeDamage (ScriptTakeDamage) void float, int, hscript (flDamage, nDamageType, hAttacker) ↑ CBaseEntity
TakeDamageEx (ScriptTakeDamageEx) void hscript, hscript, hscript, Vector, Vector, float, int (hInflictor, hAttacker, hWeapon, vecDamageForce, vecDamagePosition, flDamage, nDamageType) ↑ CBaseEntity
ValidateScriptScope bool none Ensure that an entity's script scope has been created ↑ CBaseEntity