AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Shoot right at switch (https://forums.alliedmods.net/showthread.php?t=128032)

MPNumB 05-27-2010 22:59

Shoot right at switch
 
It really got my attention. How to make delay after weapon switch till first bullet shot faster?

I made some tests:

This weapon ent pdata values are next when you just switch:
PHP Code:

new g_iPDWeaponType 43 // -1.0 (same as when you can shoot (except awp/scout, and change doesn't help)
new g_iPDNextSecAttack 47 // 0.0 (same as when you can shoot (except awp/scout, and change doesn't help)
new g_iPD_SOMETHING_ 48 // 1.5 (starts at 1.5 and when reaches 0.0 it loops countdown from 60.0 to 0.0)
new g_iPDWhenSwitched 76 // Float:get_gametime() this is when weapon was switched to (still doesn't help)
new g_iPDFirstAwpShotAfterSwitch 132 // 1.45 (changing it to 0.0 still has the same 1.45 delay) [this is awp only] 

So maybe anyone has any ideas?

// EDIT:

I assume that the only right way to change it, is when doing so pev_weaponanim is also effected by it... =P


All times are GMT -4. The time now is 05:18.

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