AMXX-BG.INFO cs_weapons_api.inc Functions

cs_weapons_api functions

All callable symbols documented in this include, grouped by declaration type.

Natives

Name Signature
cswa_give_normal native cswa_give_normal(id, csw_id, clip, ammo, show = 0)
cswa_give_specific native cswa_give_specific(id, array[], show = 0)

Stocks

Name Signature
get_weapon_edict stock get_weapon_edict(ent, type) return entity_get_edict(ent, type)
get_weapon_float stock Float:get_weapon_float(ent, type) return entity_get_float(ent, type)
get_weapon_integer stock get_weapon_integer(ent, type) return entity_get_int(ent, type)
get_weapon_string stock get_weapon_string(ent, type, array[], size) entity_get_string(ent, type, array, size)
set_weapon_edict stock set_weapon_edict(ent, type, val) entity_set_edict(ent, type, val)
set_weapon_float stock set_weapon_float(ent, type, Float:val) entity_set_float(ent, type, val)
set_weapon_integer stock set_weapon_integer(ent, type, val) entity_set_int(ent, type, val)
set_weapon_string stock set_weapon_string(ent, type, array[]) entity_set_string(ent, type, array)

Forwards

Name Signature
cswa_damage forward cswa_damage(weapon_id, victim, attacker, Float:damage)
cswa_killed forward cswa_killed(weapon_id, victim, killer)