-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add temporary loadout #1567
base: master
Are you sure you want to change the base?
add temporary loadout #1567
Conversation
other files will be changed to read playertemploadweap instead of playerloadweap. saving playerloadweap also updates playertemploadweap playertemploadweap can be updated without affecting playerloadweap
calls a new function that saves the loadout in the same way but only sets playertemploadweap without setting playerloadweap.
You don't need to have engine code for this. You can make a persistent string variable with: |
should clarify the last commit name, undid changes to client.cpp, nothing else |
after further testing it seems like persistent variables made with defsvarp is not avalible in the normal way you get an svar ($varname), doing so throws an error in the console that the variable names alias can't be found. after looking at how other scritps get an svar made in this way it seems like it this is the correct way to get such a variable. it also appears that I am defining it correctly. |
Fixes #1363
Changes proposed in this request: