Raised This Month: $51 Target: $400
 12% 

Bug Report [ZP 5.0]Bugs


Post New Thread Reply   
 
Thread Tools Display Modes
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-06-2015 , 14:12   Re: [ZP 5.0]Bugs
Reply With Quote #11

updated
Depresie is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-17-2015 , 09:47   Re: [ZP 5.0]Bugs
Reply With Quote #12

updated
__________________
Depresie is offline
nomat
Member
Join Date: Apr 2011
Location: Moldova, Republic of
Old 01-08-2016 , 13:16   Re: [ZP 5.0]Bugs
Reply With Quote #13

Solution to #3 bug:
Open zp50_gamemodes.sma

Find this line:
Quote:
// No players joined yet
if (GetAliveCount() <= 0)
return;
Change to:
Quote:
// No players joined yet
if (GetAliveCount() <= 0)
{
set_task(2.0, "choose_game_mode", TASK_GAMEMODE)
return;
}
Solution to #9 bug:
1. Fire
Open zp50_grenade_fire.sma
add somewhere after #include lines this:
native zp_item_zombie_madness_get(id)
Search this line:
Quote:
// Burning Flames
public burning_flame(taskid)
{
Change
if ((flags & FL_INWATER) || g_BurningDuration[ID_BURN] < 1)
to
if ((flags & FL_INWATER) || g_BurningDuration[ID_BURN] < 1 || zp_item_zombie_madness_get(ID_BURN))

2. Frost
Open zp50_grenade_frost.sma
After this line
Quote:
#define ID_FROST_REMOVE (taskid - TASK_FROST_REMOVE)
add below:
Quote:
#define TASK_CHECK 300
#define ID_CHECK (taskid - TASK_CHECK)
Change this:
Quote:
// Set a task to remove the freeze
set_task(get_pcvar_float(cvar_grenade_frost_d uration), "remove_freeze", victim+TASK_FROST_REMOVE)
to
Quote:
// Set a task to remove the freeze
set_task(get_pcvar_float(cvar_grenade_frost_d uration), "remove_freeze", victim+TASK_FROST_REMOVE)

// Task to check if madness bought
set_task(0.5, "check_freeze", victim+TASK_CHECK,_, _,"b" )
return true;
Search this line:
Quote:
// Remove freeze task
Before it add next function:
Quote:
// Remove freeze task
public check_freeze(taskid)
{
if(is_user_alive(ID_CHECK) && zp_item_zombie_madness_get(ID_CHECK))
{
// Remove freeze right away and stop the task
remove_freeze(ID_CHECK+TASK_FROST_REMOVE)
}
}
And the last thing
Quote:
// Remove freeze task
public remove_freeze(taskid)
{
// Remove frozen flag
flag_unset(g_IsFrozen, ID_FROST_REMOVE)
=>
Quote:
// Remove freeze task
public remove_freeze(taskid)
{
// Remove check madness task
remove_task(ID_CHECK+TASK_CHECK)

// Remove frozen flag
flag_unset(g_IsFrozen, ID_FROST_REMOVE)
How about other bugs, never happened to me...
__________________


Last edited by nomat; 01-09-2016 at 04:36.
nomat is offline
Send a message via Skype™ to nomat
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-13-2016 , 14:49   Re: [ZP 5.0]Bugs
Reply With Quote #14

Thanks for the fix @number 3
that one I realy didn't know how to fix

@number 9, I think it would be better to just set player freeze/fire to false when buying zombie madness, at least that's how I did it
__________________

Last edited by Depresie; 01-13-2016 at 14:51.
Depresie is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 03-07-2016 , 10:35   Re: [ZP 5.0]Bugs
Reply With Quote #15

Quote:
Originally Posted by nomat View Post
Solution to #3 bug:
Open zp50_gamemodes.sma

Find this line:
Change to:
Solution to #9 bug:
1. Fire
Open zp50_grenade_fire.sma
add somewhere after #include lines this:
native zp_item_zombie_madness_get(id)
Search this line:
Change
if ((flags & FL_INWATER) || g_BurningDuration[ID_BURN] < 1)
to
if ((flags & FL_INWATER) || g_BurningDuration[ID_BURN] < 1 || zp_item_zombie_madness_get(ID_BURN))

2. Frost
Open zp50_grenade_frost.sma
After this line
add below:
Change this:
to
Search this line:
Before it add next function:
And the last thing
=>
How about other bugs, never happened to me...
cant get zp50_grenade_frost.sma to complie right can someone upload theres with this fix?
Mark.uG is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode