AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How is pain shock calculated? (https://forums.alliedmods.net/showthread.php?t=339449)

cPhoenix 09-10-2022 13:14

How is pain shock calculated?
 
I have been messing around with
PHP Code:

const OFFSET_PAINSHOCK 108 // ConnorMcLeod
set_pdata_float(idOFFSET_PAINSHOCK1.0); 

You can actually call it anywhere and get pained btw.
What i'm interested is how do valve calculate the value for painshock.
It does seem to depend on the damage of weapon and from how many hits in a row taken.

EFFx 09-11-2022 01:25

Re: How is pain shock calculated?
 
This may help you: https://forums.alliedmods.net/showthread.php?t=301970


All times are GMT -4. The time now is 15:32.

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