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

Perk Bottle help

broken avatar :(
Created 12 years ago
by KDXDARK
0 Members and 1 Guest are viewing this topic.
3,111 views
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: ar
Date Registered: 21 August 2011
Last active: 20 hours ago
Posts
1,323
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
Personal Quote
This game isn't meant to be played
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Mapper Has released one or more maps to the UGX-Mods community.
KDXDARK's Contact & Social Links
Hi guys, i got a problem here adding the perk bottles, when i drink the perk it dont give the perk bottle and dont let me buy weapons, another perks, etc.

so here is the script

mod.csv
Code Snippet
Plaintext
weapon,sp/zombie_perk_bottle_ads
weapon,sp/zombie_perk_bottle_marathon
weapon,sp/zombie_perk_bottle_mule_kick
weapon,sp/zombie_perk_bottle_nuke
material,bo2_mtl_t6_wpn_zmb_perk_bottle_marathon
material,bo2_mtl_t6_wpn_zmb_perk_bottle_marathon_alpha
material,bo2_mtl_t6_wpn_zmb_perk_bottle_mule_kick
material,bo2_mtl_t6_wpn_zmb_perk_bottle_mule_kick_alpha
material,bo2_mtl_t6_wpn_zmb_perk_bottle_nuke
material,bo2_mtl_t6_wpn_zmb_perk_bottle_nuke_alpha
material,bo2_mtl_t6_wpn_zmb_perk_bottle_deadshot
material,bo2_mtl_t6_wpn_zmb_perk_bottle_ds_alpha
material,bo2_mtl_t6_wpn_zmb_perk_bottle_marathon
xmodel,bo2_t6_wpn_zmb_perk_bottle_deadshot_world
xmodel,bo2_t6_wpn_zmb_perk_bottle_deadshot_view
xmodel,bo2_t6_wpn_zmb_perk_bottle_marathon_world
xmodel,bo2_t6_wpn_zmb_perk_bottle_marathon_view
xmodel,bo2_t6_wpn_zmb_perk_bottle_mule_kick_world
xmodel,bo2_t6_wpn_zmb_perk_bottle_mule_kick_view
xmodel,bo2_t6_wpn_zmb_perk_bottle_nuke_world
xmodel,bo2_t6_wpn_zmb_perk_bottle_nuke_view

_zombiemode_perk.gsc
Code Snippet
Plaintext
perk_give_bottle_begin( perk )
{
self DisableOffhandWeapons();
self DisableWeaponCycling();

self AllowLean( false );
self AllowAds( false );
self AllowSprint( false );
self AllowProne( false );
self AllowMelee( false );

wait( 0.05 );

if ( self GetStance() == "prone" )
{
self SetStance( "crouch" );
}

gun = self GetCurrentWeapon();
weapon = "";

switch( perk )
{
case "specialty_armorvest":
weapon = "zombie_perk_bottle_jugg";
break;

case "specialty_quickrevive":
weapon = "zombie_perk_bottle_revive";
break;

case "specialty_fastreload":
weapon = "zombie_perk_bottle_sleight";
break;

case "specialty_rof":
weapon = "zombie_perk_bottle_doubletap";
break;

case "specialty_detectexplosive":
weapon = "zombie_perk_bottle_nuke";
break;

case "specialty_longersprint":
weapon = "zombie_perk_bottle_marathon";
break;

case "specialty_extraammo":
weapon = "zombie_perk_bottle_mule_kick";
break;

case "specialty_bulletaccuracy":
weapon = "zombie_perk_bottle_ads";
break;
}

self GiveWeapon( weapon );
self SwitchToWeapon( weapon );

return gun;
}

perk_give_bottle_end( gun, perk )
{
assert( gun != "zombie_perk_bottle_doubletap" );
assert( gun != "zombie_perk_bottle_revive" );
assert( gun != "zombie_perk_bottle_jugg" );
assert( gun != "zombie_perk_bottle_sleight" );
assert( gun != "zombie_perk_bottle_nuke" );
assert( gun != "zombie_perk_bottle_marathon" );
assert( gun != "zombie_perk_bottle_mule_kick" );
assert( gun != "zombie_perk_bottle_ads" );
assert( gun != "syrette" );

self EnableOffhandWeapons();
self EnableWeaponCycling();

self AllowLean( true );
self AllowAds( true );
self AllowSprint( true );
self AllowProne( true );
self AllowMelee( true );
weapon = "";
switch( perk )
{
case "specialty_armorvest":
weapon = "zombie_perk_bottle_jugg";
break;

case "specialty_quickrevive":
weapon = "zombie_perk_bottle_revive";
break;

case "specialty_fastreload":
weapon = "zombie_perk_bottle_sleight";
break;

case "specialty_rof":
weapon = "zombie_perk_bottle_doubletap";
break;

case "specialty_detectexplosive":
weapon = "zombie_perk_bottle_nuke";
break;

case "specialty_longersprint":
weapon = "zombie_perk_bottle_marathon";
break;

case "specialty_extraammo":
weapon = "zombie_perk_bottle_mule_kick";
break;

case "specialty_bulletaccuracy":
weapon = "zombie_perk_bottle_ads";
break;
}

// TODO: race condition?
if ( self maps\_laststand::player_is_in_laststand() )
{
self TakeWeapon(weapon);
return;
}

if ( gun != "none" && gun != "mine_bouncing_betty" )
{
self SwitchToWeapon( gun );
}
else
{
// try to switch to first primary weapon
primaryWeapons = self GetWeaponsListPrimaries();
if( IsDefined( primaryWeapons ) && primaryWeapons.size > 0 )
{
self SwitchToWeapon( primaryWeapons[0] );
}
}

self TakeWeapon(weapon);
}

EDIT:
Code Snippet
Plaintext
 
        PrecacheItem( "zombie_perk_bottle_doubletap" );
PrecacheItem( "zombie_perk_bottle_jugg" );
PrecacheItem( "zombie_perk_bottle_revive" );
PrecacheItem( "zombie_perk_bottle_sleight" );
PrecacheItem( "zombie_perk_bottle_nuke" );
PrecacheItem( "zombie_perk_bottle_mule_kick" );
PrecacheItem( "zombie_perk_bottle_ads" );
PrecacheItem( "zombie_perk_bottle_marathon" );
PrecacheItem( "zombie_knuckle_crack" );

what i am doing wrong?
Last Edit: January 09, 2014, 11:00:36 pm by KDXDARK
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
the perk botles are weapon files did you make those?
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: ar
Date Registered: 21 August 2011
Last active: 20 hours ago
Posts
1,323
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
Personal Quote
This game isn't meant to be played
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Mapper Has released one or more maps to the UGX-Mods community.
KDXDARK's Contact & Social Links
the perk botles are weapon files did you make those?
i copy the jugger file and replace the worldmodel and viewmodel name.
broken avatar :(
×
broken avatar :(
Location: es
Date Registered: 15 August 2013
Last active: 7 years ago
Posts
161
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Mapper
My Groups
More
Signature
Enjoy my work? Feel free to donate here to support me

Wanna become a Patron? Try my Patreon Page
×
sethnorris's Groups
Mapper Has released one or more maps to the UGX-Mods community.
sethnorris's Contact & Social Links
any progress here? I'm trying the same too
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: ar
Date Registered: 21 August 2011
Last active: 20 hours ago
Posts
1,323
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
Personal Quote
This game isn't meant to be played
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Mapper Has released one or more maps to the UGX-Mods community.
KDXDARK's Contact & Social Links
any progress here? I'm trying the same too
i keep triying some solutions but nothing works

ESP: sigo probando soluciones pero nada funciona! :(
Last Edit: January 15, 2014, 02:25:11 pm by KDXDARK
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
This could be because it was not exported in maya right :D
broken avatar :(
×
broken avatar :(
Location: england
Date Registered: 29 August 2012
Last active: 8 years ago
Posts
366
Respect
Forum Rank
Perk Hacker
Primary Group
Member
×
haxman123's Groups
haxman123's Contact & Social Links
What cowman said lol
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Hello, like i said you need to bind the joins in maya because i just try it and dose not work :D also are you useing the ugx mod? if so when you build the mod for the ugx mod put it into that csv also or will not work :D

 
Loading ...