Scripts / Help! Doom Style No Reloading

Author
Message
Nailgrind
8
Years of Service
User Offline
Joined: 8th Jun 2016
Location: Liverpool, UK
Posted: 11th May 2017 11:33
Unsure how to have no reloads, Doom style. I've tried deleting the reloading animations etc but this hasn't worked so far. If you set reload quantity to 0 you get the right effect but the ammo is then unlimited, any know an easier way via scripting perhaps?
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 11th May 2017 13:01 Edited at: 11th May 2017 13:20
you can change the reload speed to a ridiculously high number as a quick solution
Quote: "reloadspeed = 130000"

gamecore -> guns -> "folder" -> gunspec.txt

GetWeaponClipAmmo()
and
GetWeaponPoolAmmo()
don't seem to work so not sure this can be done via scripting
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Errant AI
Forum Support
18
Years of Service
User Offline
Joined: 24th Aug 2006
Location: [REDACTED]
Posted: 11th May 2017 17:29 Edited at: 11th May 2017 17:30
In addition to smallg's workaround...

1. In the weapon's gunspec, make sure you have the setting
Quote: "noautoreload = 0"


2. Make sure you have empty mode disabled with the setting
Quote: "useempty = 0"


3. You can also disable zooming with
Quote: "simplezoom = 0"


3. Find the reload animation and change the animation frame range to like just the first 2 frames of the idle animation.

example for stock 1911:
Quote: "reload = 421,463"

change to...
Quote: "reload = 30,31"


That will load immediately without a real discernable animation but it will still need to reload from a technical standpoint.

If you want to retain the ability to play a reload sound, then use the first 2 frames of the original reload anim so that you can attach a soundframe to it.

Alternatively, You could set the reloadqty to 1 and then the game would auto reload after every shot. This could work for semi-autos but not machine guns. It would also potentially require HUD element changes because your ammo would display like 1/986, etc.
Gigabyte P67A-UD4-B3, Intel Core i7 2600K (passmark 8555), 16GB Corsair DDR3, EVGA GTX 970 SC (passmark 8637), Win10 Pro 64-bit, Primary monitor @ 1920x1080, secondary monitor @ 1280x1024
Nailgrind
8
Years of Service
User Offline
Joined: 8th Jun 2016
Location: Liverpool, UK
Posted: 11th May 2017 18:38
Thanks for the quick response to both of you, those seemed to have sorted it for now

Login to post a reply

Server time is: 2024-12-23 05:32:38
Your offset time is: 2024-12-23 05:32:38