Scripts / [SOLVED] Is there a way to limit weapons?

Author
Message
wut
4
Years of Service
User Offline
Joined: 2nd Aug 2019
Location:
Posted: 30th Aug 2019 18:00
Just wondering if it would even be possible to limit weapon numbers in game guru to like 2

The author of this post has marked a post as an answer.

Go to answer
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 30th Aug 2019 18:54
This post has been marked by the post author as the answer.
yes with some scripts
weapon_restrict.lua should be assigned to always active object (stops player from swapping to slots 3 ~ 9 with number pad / scroll wheel)
weapon.lua should replace your original (modified to only allow swapping if you're carrying 2 weapons already)


p.s. i didn't modify the code for playing with a controller, you can add that yourself if you need it as i'm not actually seeing where the input for that is located in the script
p.p.s don't forget any updates or verification will restore weapon.lua so it might be worth renaming the script but you will need to manually assign the script to each weapon you place, i was being lazy
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 30th Aug 2019 19:00
Moved to scripts
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
wut
4
Years of Service
User Offline
Joined: 2nd Aug 2019
Location:
Posted: 31st Aug 2019 19:53
Thanks! This is super awesome.
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 1st Oct 2019 09:30
TY very usefull
PM

Login to post a reply

Server time is: 2024-04-26 21:52:29
Your offset time is: 2024-04-26 21:52:29