UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Detect if current weapon is upgraded or not

broken avatar :(
Created 8 years ago
by Tomzen
0 Members and 1 Guest are viewing this topic.
1,290 views
broken avatar :(
×
broken avatar :(
Location: au
Date Registered: 27 December 2014
Last active: 4 years ago
Posts
13
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Tomzen's Groups
Tomzen's Contact & Social Links
Hey, I've made a buyable max ammo, but I want the price to be 750 for non upgraded weapons and 4500 for upgraded weapons.

I have already made the buyable max ammo work, however I have not made the part to detect whether its upgraded or not.
How would one detect whether the weapon is upgraded or not? I guess I could make an array containing "pistol_standard_upgraded" etc etc, and then use getCurrentWeapon to check, but I'm pretty sure there would be a more simple way.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
As of now I'm pretty sure this would be the most simple way. There isn't very much support reguarding weapons at the moment since we can barley access them because of the table system they are using which makes it much harder.

Assuming the weapon naming system is the same as waw(not sure if it is) you could just check if the name of the weapon has _upgraded at the end of it.

 
Loading ...