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

Zombie Boss: Fire Zombie (Level: Easy)

broken avatar :(
Created 11 months ago
by gympie6
0 Members and 1 Guest are viewing this topic.
733 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 2 weeks ago
Posts
561
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
Signature
My published cod maps:

Djinncaves
Enclosed (a.k.a baconcube)
Bayern
Snowblind
Furtrelock

Black Ops Perks: https://www.ugx-mods.com/forum/scripts/55/call-of-duty-world-at-war-black-ops-perks/22180/
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.


This is an alternative version of the electricity zombie.
These kind of zombies also set your screen on fire after you got hit by them.
Not much special but it creates a bit uniqueness to your map

________________________________________________

1. copy the following files from raw/maps folder into your mod:
_zombiemode
_zombiemode_spawner
(If you already have those files you don't need to copy them)

________________________________________________

2. In your mod make a new script file (MODNAME/maps) and paste the following code in there:
#include maps\_utility; 
#include common_scripts\utility;
#include maps\_zombiemode_utility;

#using_animtree( "generic_human" );
spawn_burnzombie()
{        
    // Settings
    self.pathEnemyFightDist = 72;
    self.meleeAttackDist = 72;
    self.fire_range = 75;
    self.fire_duration = 0.75; // in seconds
    self.maxhealth = int(level.zombie_health * 1.5);
   
    self.health = self.maxhealth;
   
    self detachAll();
    self.headModel = "char_ger_honorgd_zomb_behead";
    self attach(self.headModel);
   
    self thread burn_zombie_fx();
   
    while ( 1 )
    {
        self waittill( "meleeanim", note );
        if ( note == "fire" )
        {
            if( IsDefined( self.favoriteenemy ) )
            {
                if (!self.favoriteenemy maps\_laststand::player_is_in_laststand() && distance( self.favoriteenemy.origin, self.origin ) < self.fire_range)
                {
                    self.favoriteenemy SetBurn( self.fire_duration );
                    self.favoriteenemy shellshock( "pain", self.fire_duration );
                    self.favoriteenemy playsound( "small_fire" );
                }
            }
        }        
    }
}

burn_zombie_fx()
{
    self endon ("death");

    while(1)
    {
        PlayFxOnTag( level._effect["character_fire_death_sm"], self, "j_thumb_le_1" );
        PlayFxOnTag( level._effect["character_fire_death_sm"], self, "j_thumb_ri_1" );
        PlayFxOnTag( level._effect["character_fire_death_sm"], self, "j_head" );
        wait 12;
    }
}
(You can for example copy the _zombiemode.gsc file, clear that file and paste this in)
________________________________________________
3. openup _zombiemode_spawner and look for:
self notify( "zombie_init_done" );
change it to this:
self notify( "zombie_init_done" );

if (self.animname != "quad_zombie" && self.animname != "boss_zombie" && self.animname != "zombie_dog")
{
    spawn_round = 3; // the starting round the burn zombie will spawn
    spawn_percentage = 10; // the spawn percentage the burn zombie will spawn

    if (level.round_number >= spawn_round && randomInt(100) <= spawn_percentage)
    {
        self thread maps\YOURSCRIPT::spawn_burnzombie();
    }
}
________________________________________________
4. Build mod and you're done! Have fun! :)
You don't need to add any fx because I am re-using the flamethrower fx.
Last Edit: September 17, 2021, 09:43:41 pm by gympie6
broken avatar :(
×
broken avatar :(
Location: mxmexico
Date Registered: 16 August 2020
Last active: 2 months ago
Posts
57
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
Crepp115#8456's Groups
Crepp115#8456's Contact & Social Links
but I name the script that when doing it it does not link it or it does not find the script

The same thing happens to me with the electric zombie
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 2 weeks ago
Posts
561
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
but I name the script that when doing it it does not link it or it does not find the script

The same thing happens to me with the electric zombie
No idea what you mean with that. Look at the screenshots, maybe you have missed a step?
If you still have troubles please contact me at discord UGX modding help and I will help you.



Last Edit: August 26, 2021, 07:17:07 pm by gympie6
broken avatar :(
×
broken avatar :(
Location: mxmexico
Date Registered: 16 August 2020
Last active: 2 months ago
Posts
57
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
Crepp115#8456's Groups
Crepp115#8456's Contact & Social Links
No idea what you mean with that. Look at the screenshots, maybe you have missed a step?
If you still have troubles please contact me at discord UGX modding help and I will help you.

(Image removed from quote.)

(Image removed from quote.)
thank you I need to put the name of my new script
sorry for the inconvenience :))
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 2 weeks ago
Posts
561
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
It's is no problem! :), Maybe I wasn't clear about that. I am glad you got it working!
broken avatar :(
×
broken avatar :(
Location: mxmexico
Date Registered: 16 August 2020
Last active: 2 months ago
Posts
57
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
Crepp115#8456's Groups
Crepp115#8456's Contact & Social Links
It's is no problem! :), Maybe I wasn't clear about that. I am glad you got it working!
I have a problem using the ccm apoticon servent when shooting and uploading the burned zombie gives me this error



It only happens to me with the fire and electric zombie
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 2 weeks ago
Posts
561
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
I am afraid I have no clue why that happends.:(
It sounds like the gear added to them are crashing your game.
You can try to // it and see if that helps.
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 20 April 2022
Last active: 10 days ago
Posts
18
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ghetto_wizzz's Groups
ghetto_wizzz's Contact & Social Links
Hey I was wondering (for your electric and fire bosses) what effects do I need to have in my zone_source file/csv? I have either seemed to note it out or it is just completely missing from my files, seeing that they appear to not be in flames or electrocution state :) Thanks
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 2 weeks ago
Posts
561
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Hey I was wondering (for your electric and fire bosses) what effects do I need to have in my zone_source file/csv? I have either seemed to note it out or it is just completely missing from my files, seeing that they appear to not be in flames or electrocution state :) Thanks
add these to your zone_source/MODNAME.csv or your modbuilder.
 
electric zombie:
fx,env/electrical/fx_elec_player_sm
 
fire zombie:
fx,env/fire/fx_fire_player_md
 
<31
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 20 April 2022
Last active: 10 days ago
Posts
18
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ghetto_wizzz's Groups
ghetto_wizzz's Contact & Social Links
you're the best gympie!!
:+1:1

 
Loading ...