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

No Ammo vox while holding knife

broken avatar :(
Created 9 years ago
by jiggy22
0 Members and 1 Guest are viewing this topic.
1,611 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 5 months ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksjiggy22archdukesquidlylll
So in my map, I've added the Vorkuta Knife as a usable weapon. However, while holding the weapon, the character won't stop making the usual comments about having no ammo and whatnot. Is there any way I can edit the scripts so that this doesn't happen? I'm not looking to completely remove the lines, I just want to keep them from playing while using the knife. Thanks  :)
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 5 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
So in my map, I've added the Vorkuta Knife as a usable weapon. However, while holding the weapon, the character won't stop making the usual comments about having no ammo and whatnot. Is there any way I can edit the scripts so that this doesn't happen? I'm not looking to completely remove the lines, I just want to keep them from playing while using the knife. Thanks  :)

in _zombiemode.gsc find track_players_ammo_count() and in that should be a line like this
Code Snippet
Plaintext
			if(!isDefined(weap) || weap == "none" || weap == "zombie_perk_bottle_doubletap" || weap == "zombie_perk_bottle_jugg" || weap == "zombie_perk_bottle_revive" || weap == "zombie_perk_bottle_sleight" || weap == "mine_bouncing_betty" || weap == "syrette")

simply add to that line with whatever weapon you want to be ignored in it, e.g.
Code Snippet
Plaintext
			if(!isDefined(weap) || weap == "none" || weap == "zombie_perk_bottle_doubletap" || weap == "zombie_perk_bottle_jugg" || weap == "zombie_perk_bottle_revive" || weap == "zombie_perk_bottle_sleight" || weap == "mine_bouncing_betty" || weap == "syrette"  || weap == "YOUR_WEAPON_NAME_HERE")
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 5 months ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksjiggy22archdukesquidlylll
Thank you so much for the help again! :)

 
Loading ...