Table of Contents

GEWeapon::CBaseCombatWeapon

Description

Represents a basic entity in the source engine

Version

Beta 4.0

NameSpace

GEWeapon

Inherits

None

Methods

HasAnyAmmo

Does the weapon have ammo?<br> Parameters: None<br> Return: bool<br>

HasPrimaryAmmo

Does the weapon have primary ammo?<br> Parameters: None<br> Return: bool<br>

HasSecondaryAmmo

Does the weapon have secondary ammo?<br> Parameters: None<br> Return: bool<br>

UsesPrimaryAmmo

Does the weapon use primary ammo?<br> Parameters: None<br> Return: bool<br>

UsesSecondaryAmmo

Does the weapon use secondary ammo?<br> Parameters: None<br> Return: bool<br>

UsesClipsForAmmo1

Does the weapon use clips for ammo 1?<br> Parameters: None<br> Return: bool<br>

UsesClipsForAmmo2

Does the weapon use clips for ammo 2?<br> Parameters: None<br> Return: bool<br>

IsMeleeWeapon

Is the weapon melee based?<br> Parameters: None<br> Return: bool<br>

GetViewModel

Gets the view model of the weapon<br> Parameters: None<br> Return: string<br>

GetWorldModel

Gets the world model of the weapon<br> Parameters: None<br> Return: string<br>

GetAnimPrefix

Gets the animation prefix<br> Parameters: None<br> Return: string<br>

GetMaxClip1

Gets capacity of clip 1<br> Parameters: None<br> Return: int<br>

GetMaxClip2

Gets capacity of clip 2<br> Parameters: None<br> Return: int<br>

GetDefaultClip1

Gets default size of clip 1<br> Parameters: None<br> Return: int<br>

GetDefaultClip2

Gets default size of clip 2<br> Parameters: None<br> Return: int<br>

GetWeight

Gets weapon weight<br> Parameters: None<br> Return: int<br>

GetWeaponFlags

Gets weapon flags<br> Parameters: None<br> Return: int<br>

GetSlot

Gets weapon hud slot<br> Parameters: None<br> Return: int<br>

GetPosition

Gets slot position<br> Parameters: None<br> Return: int<br>

GetName

Gets weapon name<br> Parameters: None<br> Return: string<br>

GetPrintName

Gets weapon print name<br> Parameters: None<br> Return: string<br>

GetShootSound

Gets default shoot sound<br> Parameters: None<br> Return: string<br>

GetPrimaryAmmoCount

Get primary ammo count<br> Parameters: None<br> Return: int<br>

SetPrimaryAmmoCount

Set primary ammo count<br> Parameters: int Ammo count<br> Return: None<br>

GetSecondaryAmmoCount

Get secondary ammo count<br> Parameters: None<br> Return: int<br>

SetSecondaryAmmoCount

Set secondary ammo count<br> Parameters: int Ammo count<br> Return: None<br>

GiveDefaultAmmo

Give default set of ammo to the weapon owner<br> Parameters: None<br> Return: None<br>

GetClip1

Get clip 1 ammo count<br> Parameters: None<br> Return: int<br>

GetClip2

Get clip 2 ammo count<br> Parameters: None<br> Return: int<br>