i created a list of weapon classname for alien swarm, might be useful for future plugins writers.. here it is, psychonic, if u can add it to the sourcemod wiki, it will be best..
PHP Code:
slot 0 & 1:
asw_weapon_rifle (98 rounds, 5 clips, 5 Frag Grenades) [22A3-1 Assault Rifle]
asw_weapon_prifle (98 rounds, 5 clips, 5 Stun Grenades) [22A7-Z Prototype Assault Rifle]
asw_weapon_autogun (250 rounds, 1 clip) [S23A SynTek Autogun]
asw_weapon_vindicator (14 rounds, 5 clips, 5 Incendiary Grenades) [M42 Vindicator]
asw_weapon_pistol (24 rounds, 10 clips) [M73 Twin Pistols]
asw_weapon_sentry (450 rounds) [IAF Advanced Sentry Gun]
asw_weapon_heal_grenade (8 rounds default) [Heal Beacon]
asw_weapon_ammo_satchel (3 rounds) [IAF Ammo Satchel]
asw_weapon_shotgun (4 rounds, 8 clips) [Model 25 Pump-action Shotgun]
asw_weapon_tesla_gun (20 rounds, 13 clips) [IAF Tesla Cannon]
asw_weapon_railgun (1 round, 72 clips) [Precision Rail Rifle]
asw_weapon_heal_gun (80 rounds) [IAF Medical Gun]
asw_weapon_pdw (80 rounds, 11 clips) [K80 Personal Defense Weapon]
asw_weapon_flamer (40 rounds, 5 clips, Fire Extinguisher) [M868 Flamer Unit]
asw_weapon_sentry_freeze (800 rounds) [IAF Freeze Sentry Gun]
asw_weapon_minigun (250 rounds, 1 clip, Barrel Spin-up) [IAF Minigun]
asw_weapon_sniper_rifle (12 rounds, 5 clips, Enhanced Target Imaging)[AVK-36 Marksman Rifle]
asw_weapon_sentry_flamer (800 rounds) [IAF Incendiary Sentry Gun]
asw_weapon_chainsaw (Infinite) [Chainsaw]
asw_weapon_sentry_cannon (25 rounds) [IAF High Velocity Sentry Cannon]
asw_weapon_grenade_launcher (6 rounds, 3 clips) [Grenade Launcher]
Slot 2:
asw_weapon_medkit (1 round) [IAF Personal Healing Kit]
asw_weapon_welder (Infinite) [Hand Welder]
asw_weapon_flares (15 rounds) [SM75 Comabt Flares]
asw_weapon_laser_mines (12 rounds) [ML30 Laser Trip Mine]
asw_weapon_normal_armor (Infinite) [I3a Tactical Heavy Armor]
asw_weapon_buff_grenade (5 rounds) [X33 Damage Amplifier]
asw_weapon_hornet_barrage (3 rounds) [Hornet Barrage]
asw_weapon_freeze_grenades (5 rounds) [Freeze Grenade]
asw_weapon_stim (3 rounds) [Adrenaline]
asw_weapon_tesla_trap (3 rounds) [IAF Tesla Sentry Coil]
asw_weapon_electrified_armor (Infinite, 3 Electric Charges) [v45 Electric Charged Armor]
asw_weapon_mines (5 rounds) [M478 Proximity Incendiary Mine]
asw_weapon_flashlight (Infinite) [Flashlight Attachment]
asw_weapon_fist (Infinite) [IAF Power Fist Attachment]
asw_weapon_grenades (5 rounds) [Hand Grenades]
asw_weapon_night_vision (Rechargable) [MNV34 Nightvision Goggles]
asw_weapon_smart_bomb (1 round) [MTD6 Smart Bomb]
next i will be finding out the names of the 3rd equipped slot items as well... but psychonic, do you know the netprop that controls the number of clips a weapon has? i found out that m_iClip1 controls the current amount of ammo, m_iClip2 controls the amount of secondary ammo.. but i didn't seem to be able to find out what controls the number of clips ... and something else, the game keeps logging m_iClip1 changed when i tried changing the ammo... like this:
PHP Code:
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
Entity 29 (class 'asw_weapon_prifle') reported ENTITY_CHANGE_NONE but 'm_iClip1' changed.
is there anyway to stop the game from logging these?
EDIT2: error 1: when i tried to add Swarm_GetMarineWeaponSlot(marine, weaponslot),
PHP Code:
// C:\Program Files (x86)\Steam\steamapps\common\alien swarm\swarm\addons\sourcemod\scripting\include\swarmtools.inc(90) : error 017: undefined symbol "weaponOffset"
//
// 1 Error.
EDIT3: ok, i found out what's causing the error, u missed out a s from the name, it should be "weaponsOffset" instead... after i changed that from the swarmtools.inc, everything is good again..
and, i wan to ask something else, is there an event player_disconnect that we can use? because by using OnClientDisconnect, it is called on every map change, but i want a script to be activated only when a client really disconnected and not just disconnected because of mapchange..