Raised This Month: $ Target: $400
 0% 

[L4D2]How to get the active weapon before the incapacitated player is incapacitated


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-16-2022 , 04:35   Re: [L4D2]How to get the active weapon before the incapacitated player is incapacitat
Reply With Quote #6

...there is event
Code:
01/15/2022 - 22:17:56: Server event "revive_success", Tick 13951:
01/15/2022 - 22:17:56: - "userid" = "3"
01/15/2022 - 22:17:56: - "subject" = "2"
01/15/2022 - 22:17:56: - "lastlife" = "0"
01/15/2022 - 22:17:56: - "ledge_hang" = "0"
or is there important reason to look/use "offsets" ?

*edit
here previous post event
Code:
01/15/2022 - 22:17:49: Server event "player_incapacitated_start", Tick 13758:
01/15/2022 - 22:17:49: - "userid" = "2"
01/15/2022 - 22:17:49: - "attacker" = "0"
01/15/2022 - 22:17:49: - "attackerentid" = "163"
01/15/2022 - 22:17:49: - "weapon" = ""
01/15/2022 - 22:17:49: - "type" = "128"
01/15/2022 - 22:17:49: m_hActiveWeapon -1, WeaponSwitch 279, m_isIncapacitated 1
01/15/2022 - 22:17:49: m_hActiveWeapon 279, WeaponSwitch 279, m_isIncapacitated 1
01/15/2022 - 22:17:49: Server event "item_pickup", Tick 13758:
01/15/2022 - 22:17:49: - "userid" = "2"
01/15/2022 - 22:17:49: - "item" = "pistol"
01/15/2022 - 22:17:49: Server event "player_incapacitated", Tick 13758:
01/15/2022 - 22:17:49: - "userid" = "2"
01/15/2022 - 22:17:49: - "attacker" = "0"
01/15/2022 - 22:17:49: - "attackerentid" = "163"
01/15/2022 - 22:17:49: - "weapon" = ""
01/15/2022 - 22:17:49: - "type" = "128"
__________________
Do not Private Message @me

Last edited by Bacardi; 01-16-2022 at 04:37.
Bacardi is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode