AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Quick-switch Reload v1.0 (AMXX 1.8 Compatible) (https://forums.alliedmods.net/showthread.php?t=347122)

bigdaddy424 04-03-2024 00:51

Quick-switch Reload v1.0 (AMXX 1.8 Compatible)
 
1 Attachment(s)
  • Description
    Quick-switching as soon as the magazine hits the well will reload the weapon just like in CS 2
  • Install
    Click `Get Plugin`
  • Notes
    Majority of code is taken from forum posts
    The time that it takes the reload animation to stop at the exact position when the magazine is fully in is calculated using Model Viewer.
    The current frame is divided by FPS to get precise time
  • Image
    https://imgur.com/a/xmdFtrB
    https://imgur.com/a/SjfunlY

WATCH_D0GS UNITED 04-03-2024 19:57

Re: Quick-switch Reload v1.0 (AMXX 1.8 Compatible)
 
Nice plugin, as well as the whole code.

Only thing is ->

Spoiler

bigdaddy424 04-04-2024 10:51

Re: Quick-switch Reload v1.0 (AMXX 1.8 Compatible)
 
Fixed, thanks for noticing

WATCH_D0GS UNITED 04-12-2024 15:50

Re: Quick-switch Reload v1.0 (AMXX 1.8 Compatible)
 
What about making it more similar to CS 2

-> Send a CurWeapon message in the moment the (<weapon>_clipin.wav | MDL_ANIMATION) occurs along with cs_set_user_bpammo.

bigdaddy424 04-12-2024 23:19

Re: Quick-switch Reload v1.0 (AMXX 1.8 Compatible)
 
im unable to catch <weapon>_clipin.wav using FM_EmitSound

georgik57 04-20-2024 11:58

Re: Quick-switch Reload v1.0 (AMXX 1.8 Compatible)
 
Quote:

Originally Posted by WATCH_D0GS UNITED (Post 2820865)
What about making it more similar to CS 2

-> Send a CurWeapon message in the moment the (<weapon>_clipin.wav | MDL_ANIMATION) occurs along with cs_set_user_bpammo.

idk if it's possible to do that since the sounds are played on client side.
setting ammo as soon as the clip is in is also not a good idea because if you hold attack it will start shooting before the animation is done.
you can, however, fake the clip ammo on the hud with curweapon message: https://wiki.alliedmods.net/Half-Lif...ents#CurWeapon

WATCH_D0GS UNITED 04-20-2024 13:35

Re: Quick-switch Reload v1.0 (AMXX 1.8 Compatible)
 
Quote:

Originally Posted by georgik57 (Post 2821266)
setting ammo as soon as the clip is in is also not a good idea because if you hold attack it will start shooting before the animation is done.

You cannot shoot in when the gun is reloading.


All times are GMT -4. The time now is 17:02.

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