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

[ZP] Addon Round Fog


Post New Thread Reply   
 
Thread Tools Display Modes
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 03-28-2012 , 09:57   Re: [ZP] Addon Round Fog
Reply With Quote #21

ask H.RED.ZONE
__________________
jc980 is offline
AvasT
BANNED
Join Date: Jan 2012
Location: Lithuania
Old 03-28-2012 , 10:33   Re: [ZP] Addon Round Fog
Reply With Quote #22

Any screenshots
AvasT is offline
Send a message via Skype™ to AvasT
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 12-30-2014 , 09:41   Re: [ZP] Addon Round Fog
Reply With Quote #23

last night i downloaded this awesome plugin so i decided to convert it to zp50
now its very easy to add fog for your custom gamemodes following by this steps(example: Sniper Mode Fog)

1-first add a variable at the top where you can see new
PHP Code:
new g_GameModeSniperID 
2-add line below to get sniper gamemode id from zp50,somewhere in public plugin_cfg() section
PHP Code:
g_GameModeSniperID zp_gamemodes_get_id("Sniper Mode"
3-now its main step,add lines below somewhere like other lines in zp_fw_gamemodes_start(gamemode) section

PHP Code:
if(zp_gamemodes_get_current() == g_GameModeSniperID)
        
CreateFog(010010000.0008);
//dont forgot to change Fog density,color,etc 
then compile and use it(fog from zombieplague.ini must be disable(FOG = 0))
Attached Files
File Type: sma Get Plugin or Get Source (zp50_round_fog.sma - 563 views - 2.7 KB)
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 12-30-2014 at 09:45.
New.ZM.Life is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-30-2014 , 09:46   Re: [ZP] Addon Round Fog
Reply With Quote #24

Nice sharing, New.ZM.Life.
zmd94 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 12-30-2014 , 11:20   Re: [ZP] Addon Round Fog
Reply With Quote #25

Change this..

PHP Code:
public zp_fw_gamemodes_start(gamemode)
{

    if(
zp_gamemodes_get_current() == g_GameModeInfectionID)
        
CreateFog(01001001000.0008);

    if(
zp_gamemodes_get_current() == g_GameModeMultiID)
        
CreateFog(01001001000.0008);

    if(
zp_gamemodes_get_current() == g_GameModeSwarmID)
        
CreateFog(020100200.0008);

    if(
zp_gamemodes_get_current() == g_GameModePlagueID)
        
CreateFog(0010000.0008);

    if(
zp_gamemodes_get_current() == g_GameModeNemesisID)
        
CreateFog(0100000.0008);

    if(
zp_gamemodes_get_current() == g_GameModeSurvivorID)
        
CreateFog(0001000.0008);

    if(
zp_gamemodes_get_current() == ZP_NO_GAME_MODE)
        
CreateFog(00000.0000);
    

to this..

PHP Code:
public zp_fw_gamemodes_start(gamemode)
{

    if(
gamemode == g_GameModeInfectionID)
        
CreateFog(01001001000.0008);

    if(
gamemode == g_GameModeMultiID)
        
CreateFog(01001001000.0008);

    if(
gamemode == g_GameModeSwarmID)
        
CreateFog(020100200.0008);

    if(
gamemode == g_GameModePlagueID)
        
CreateFog(0010000.0008);

    if(
gamemode == g_GameModeNemesisID)
        
CreateFog(0100000.0008);

    if(
gamemode == g_GameModeSurvivorID)
        
CreateFog(0001000.0008);

    if(
gamemode == ZP_NO_GAME_MODE)
        
CreateFog(00000.0000);
    

Why u uses the native? if the forward has the parameter to get the current gamemode..
wicho is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 12-30-2014 , 15:19   Re: [ZP] Addon Round Fog
Reply With Quote #26

Hmmm,yes...I forgot that
Thanks for telling it
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 01-05-2015 , 07:18   Re: [ZP] Addon Round Fog
Reply With Quote #27

This plugin sometimes doesnt work for me...

For example..when round end,next round I see fog color of last round

Or sometimes there is no fog!!

Anyone know what is problem?I use this:
https://forums.alliedmods.net/showpo...0&postcount=23
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 01-05-2015 at 07:18.
New.ZM.Life is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-05-2015 , 11:18   Re: [ZP] Addon Round Fog
Reply With Quote #28

Edit: Below way is incorrect in this case. So, don't use it. ;)
PHP Code:
public zp_fw_gamemodes_start(gamemode)
{
    switch(
gamemode)
    {
        case 
g_GameModeInfectionIDCreateFog(01001001000.0008)
        case 
g_GameModeMultiIDCreateFog(01001001000.0008)
        case 
g_GameModeSwarmIDCreateFog(020100200.0008)
        case 
g_GameModePlagueIDCreateFog(0010000.0008)
        case 
g_GameModeNemesisIDCreateFog(0100000.0008)
        case 
g_GameModeSurvivorIDCreateFog(0001000.0008)
        default: 
CreateFog(00000.0000)
    }

The correct way:

https://forums.alliedmods.net/showpo...8&postcount=29

Last edited by zmd94; 01-06-2015 at 08:08.
zmd94 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 01-05-2015 , 11:56   Re: [ZP] Addon Round Fog
Reply With Quote #29

Or try this:

PHP Code:
public zp_fw_gamemodes_start(gamemode

    if(
gamemode == g_GameModeInfectionIDCreateFog(01001001000.0008); 
    else if(
gamemode == g_GameModeMultiIDCreateFog(01001001000.0008); 
    else if(
gamemode == g_GameModeSwarmIDCreateFog(020100200.0008); 
    else if(
gamemode == g_GameModePlagueIDCreateFog(0010000.0008); 
    else if(
gamemode == g_GameModeNemesisIDCreateFog(0100000.0008); 
    else if(
gamemode == g_GameModeSurvivorIDCreateFog(0001000.0008); 
    else if(
gamemode == ZP_NO_GAME_MODECreateFog(00000.0000);      

wicho is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 01-05-2015 , 15:48   Re: [ZP] Addon Round Fog
Reply With Quote #30

Thanks both guys xD
Gonna try both codes
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life 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 00:08.


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