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

(BO) Molotov Cocktail Fix

broken avatar :(
Created 7 years ago
by jiggy22
0 Members and 1 Guest are viewing this topic.
1,763 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 1 year ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksarchdukesquidlyllljiggy22
In my mod for Black Ops, I've been trying to port in the Molotov Cocktail, but I'm facing some trouble with it regarding scripting. In my mapname.gsc, I have this line of code:

Code Snippet
Plaintext
register_tactical_grenade_for_level( "molotov_zm" );
level.zombie_tactical_grenade_player_init = "molotov_zm";

And in the _zombiemode_weapons.gsc, I have this small function set up:

Code Snippet
Plaintext
give_molotov()
{
self giveweapon( "molotov_zm" );
self set_player_tactical_grenade( "molotov_zm" );
}

However, when I get the Molotov from the Mystery Box, the weapon takes up my primary grenade slot instead of my tactical grenade slot, and now I have four grenades and three molotov cocktails. So what am I doing wrong? Anybody know? Thanks to anybody who can help :)
Marked as best answer by jiggy22 7 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
its a setting in the weaponfile not in the script...
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 1 year ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksarchdukesquidlyllljiggy22
Yeah, so the problem was that the UGX weapon editor doesn't display the "offhandslot" setting, which is what I needed to change from Primary to Tactical grenade.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Yeah, so the problem was that the UGX weapon editor doesn't display the "offhandslot" setting, which is what I needed to change from Primary to Tactical grenade.
does it just refers to it as "smoke grenade"

 
Loading ...