Post: Freeze!
04-17-2016, 04:26 PM #1
DrHackHD
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); I FREEZE WITH THIS HEEEEEEELP:

update_staff_accessories( n_element_index )
{
/#
if ( !isDefined( n_element_index ) )
{
n_element_index = 0;
str_weapon = self getcurrentweapon();
if ( is_weapon_upgraded_staff( str_weapon ) )
{
s_info = maps/mp/zm_tomb_craftables::get_staff_info_from_weapon_name( str_weapon );
if ( isDefined( s_info ) )
{
n_element_index = s_info.enum;
s_info.charger.is_charged = 1;
#/
}
}
}
if ( isDefined( self.one_inch_punch_flag_has_been_init ) && !self.one_inch_punch_flag_has_been_init )
{
cur_weapon = self get_player_melee_weapon();
weapon_to_keep = "knife_zm";
self.use_staff_melee = 0;
if ( n_element_index != 0 )
{
staff_info = maps/mp/zm_tomb_craftables::get_staff_info_from_element_index( n_element_index );
if ( staff_info.charger.is_charged )
{
staff_info = staff_info.upgrade;
}
if ( isDefined( staff_info.melee ) )
{
weapon_to_keep = staff_info.melee;
self.use_staff_melee = 1;
}
}
melee_changed = 0;
if ( cur_weapon != weapon_to_keep )
{
self takeweapon( cur_weapon );
self giveweapon( weapon_to_keep );
self set_player_melee_weapon( weapon_to_keep );
melee_changed = 1;
}
}
has_revive = self hasweapon( "staff_revive_zm" );
has_upgraded_staff = 0;
a_weapons = self getweaponslistprimaries();
staff_info = maps/mp/zm_tomb_craftables::get_staff_info_from_element_index( n_element_index );
_a2199 = a_weapons;
_k2199 = getFirstArrayKey( _a2199 );
while ( isDefined( _k2199 ) )
{
str_weapon = _a2199[ _k2199 ];
if ( is_weapon_upgraded_staff( str_weapon ) )
{
has_upgraded_staff = 1;
}
_k2199 = getNextArrayKey( _a2199, _k2199 );
}
if ( has_revive && !has_upgraded_staff )
{
self setactionslot( 3, "altmode" );
self takeweapon( "staff_revive_zm" );
}
else
{
if ( !has_revive && has_upgraded_staff )
{
self setactionslot( 3, "weapon", "staff_revive_zm" );
self giveweapon( "staff_revive_zm" );
if ( isDefined( staff_info ) )
{
if ( isDefined( staff_info.upgrade.revive_ammo_stock ) )
{
self setweaponammostock( "staff_revive_zm", staff_info.upgrade.revive_ammo_stock );
self setweaponammoclip( "staff_revive_zm", staff_info.upgrade.revive_ammo_clip );
}
}
}
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
04-19-2016, 11:11 PM #2
Nate͍
Do a barrel roll!
Originally posted by DrHackHD View Post
I FREEZE WITH THIS HEEEEEEELP:

update_staff_accessories( n_element_index )
{
/#
if ( !isDefined( n_element_index ) )
{
n_element_index = 0;
str_weapon = self getcurrentweapon();
if ( is_weapon_upgraded_staff( str_weapon ) )
{
s_info = maps/mp/zm_tomb_craftables::get_staff_info_from_weapon_name( str_weapon );
if ( isDefined( s_info ) )
{
n_element_index = s_info.enum;
s_info.charger.is_charged = 1;
#/
}
}
}
if ( isDefined( self.one_inch_punch_flag_has_been_init ) && !self.one_inch_punch_flag_has_been_init )
{
cur_weapon = self get_player_melee_weapon();
weapon_to_keep = "knife_zm";
self.use_staff_melee = 0;
if ( n_element_index != 0 )
{
staff_info = maps/mp/zm_tomb_craftables::get_staff_info_from_element_index( n_element_index );
if ( staff_info.charger.is_charged )
{
staff_info = staff_info.upgrade;
}
if ( isDefined( staff_info.melee ) )
{
weapon_to_keep = staff_info.melee;
self.use_staff_melee = 1;
}
}
melee_changed = 0;
if ( cur_weapon != weapon_to_keep )
{
self takeweapon( cur_weapon );
self giveweapon( weapon_to_keep );
self set_player_melee_weapon( weapon_to_keep );
melee_changed = 1;
}
}
has_revive = self hasweapon( "staff_revive_zm" );
has_upgraded_staff = 0;
a_weapons = self getweaponslistprimaries();
staff_info = maps/mp/zm_tomb_craftables::get_staff_info_from_element_index( n_element_index );
_a2199 = a_weapons;
_k2199 = getFirstArrayKey( _a2199 );
while ( isDefined( _k2199 ) )
{
str_weapon = _a2199[ _k2199 ];
if ( is_weapon_upgraded_staff( str_weapon ) )
{
has_upgraded_staff = 1;
}
_k2199 = getNextArrayKey( _a2199, _k2199 );
}
if ( has_revive && !has_upgraded_staff )
{
self setactionslot( 3, "altmode" );
self takeweapon( "staff_revive_zm" );
}
else
{
if ( !has_revive && has_upgraded_staff )
{
self setactionslot( 3, "weapon", "staff_revive_zm" );
self giveweapon( "staff_revive_zm" );
if ( isDefined( staff_info ) )
{
if ( isDefined( staff_info.upgrade.revive_ammo_stock ) )
{
self setweaponammostock( "staff_revive_zm", staff_info.upgrade.revive_ammo_stock );
self setweaponammoclip( "staff_revive_zm", staff_info.upgrade.revive_ammo_clip );
}
}
}
}
}


Take out the /# and #/ lol
04-21-2016, 12:09 AM #3
DrHackHD
Bounty hunter
still freezing
04-21-2016, 08:57 PM #4
JustFuSiOn
Are you high?
Originally posted by DrHackHD View Post
still freezing


You could use the GSC Error Reporter (if you're on PS3) to tell you the problem, I would do it for you but I'm too lazy right now...
04-21-2016, 09:22 PM #5
DrHackHD
Bounty hunter
ok thanks Smile
04-21-2016, 09:38 PM #6
DrHackHD
Bounty hunter
error reporter only work for multi not zombies :(
04-21-2016, 10:18 PM #7
JustFuSiOn
Are you high?
Originally posted by DrHackHD View Post
error reporter only work for multi not zombies :(


You could try Redacted, it's the PC version that allows GSC (PC will tell you your error as well)
04-21-2016, 11:43 PM #8
DrHackHD
Bounty hunter
don't have redacted and bo2 pc
04-22-2016, 05:50 PM #9
JustFuSiOn
Are you high?
Originally posted by DrHackHD View Post
don't have redacted and bo2 pc


You can download Redacted for free, but I cant give you a link.
04-22-2016, 06:39 PM #10
Patrick
League Champion
This is freezing because you have just ripped it from the decompiled game files lol.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo