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

Glowing zombie-eyes

broken avatar :(
Created 10 years ago
by InFInIX
0 Members and 1 Guest are viewing this topic.
6,899 views
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 18 October 2013
Last active: 14 days ago
Posts
652
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
×
InFInIX's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
InFInIX's Contact & Social Links
All credits goes to treyarch AND weezy428

Ok the FULL tutorial is in _zombiemode_spawners.gsc
Step 1

Find this!
Code Snippet
Plaintext
//When a Zombie spawns, set his eyes to glowing.
zombie_eye_glow()
{
if( IsDefined( level.zombie_eye_glow ) && !level.zombie_eye_glow )
{
return;
}

if( !IsDefined( self ) )
{
return;
}
/* if(!isdefined(level._numZombEyeGlows))
{
level._numZombEyeGlows = 0;
}

// if(level.zombie_eyes_limited && level._numZombEyeGlows > 8)
// return;

if ( level.zombie_eyes_disabled )
{
return;
}

        linkTag = "J_Eyeball_LE";
fxModel = "tag_origin";
fxTag = "tag_origin";

// SRS 9/2/2008: only using one particle now per Barry's request;
//  modified to be able to turn particle off

self.fx_eye_glow = Spawn( "script_model", self GetTagOrigin( linkTag ) );
self.fx_eye_glow.angles = self GetTagAngles( linkTag );
self.fx_eye_glow SetModel( fxModel );
self.fx_eye_glow LinkTo( self, linkTag );

// TEMP for testing
//self.fx_eye_glow thread maps\_debug::drawTagForever( fxTag );

PlayFxOnTag( level._effect["eye_glow"], self.fx_eye_glow, fxTag );

level._numZombEyeGlows ++;
addtagname(linkTag);
self haseyes(1);*/
}

now replace it with this!
Code Snippet
Plaintext
// When a Zombie spawns, set his eyes to glowing.
zombie_eye_glow()
{
if( IsDefined( level.zombie_eye_glow ) && !level.zombie_eye_glow )
{
return;
}

if( !IsDefined( self ) )
{
return;
}

linkTag = "J_Eyeball_LE";
fxModel = "tag_origin";
fxTag = "tag_origin";

// SRS 9/2/2008: only using one particle now per Barry's request;
//  modified to be able to turn particle off
self.fx_eye_glow = Spawn( "script_model", self GetTagOrigin( linkTag ) );
self.fx_eye_glow.angles = self GetTagAngles( linkTag );
self.fx_eye_glow SetModel( fxModel );
self.fx_eye_glow LinkTo( self, linkTag );

// TEMP for testing
//self.fx_eye_glow thread maps\_debug::drawTagForever( fxTag );

PlayFxOnTag( level._effect["eye_glow"], self.fx_eye_glow, fxTag );
}

to stopp the FX after the zombie died
find this!

Code Snippet
Plaintext
// Called when either the Zombie dies or if his head gets blown off
zombie_eye_glow_stop()
{
/* if( IsDefined( self.fx_eye_glow ) )
{
self.fx_eye_glow Delete();
level._numZombEyeGlows --;
}

self haseyes(0);*/
}

and replace it with this code!

Code Snippet
Plaintext
// Called when either the Zombie dies or if his head gets blown off
zombie_eye_glow_stop()
{
if( IsDefined( self.fx_eye_glow ) )
{
self.fx_eye_glow Delete();
}
}
Last Edit: May 23, 2014, 03:05:27 pm by InFInIX
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
to stopp the FX after the zombie died
find this!

Code Snippet
Plaintext
// Called when either the Zombie dies or if his head gets blown off
zombie_eye_glow_stop()
{
if( IsDefined( self.fx_eye_glow ) )
{
self.fx_eye_glow Delete();
}
}

and replace it with this code!

Code Snippet
Plaintext
// Called when either the Zombie dies or if his head gets blown off
zombie_eye_glow_stop()
{
/* if( IsDefined( self.fx_eye_glow ) )
{
self.fx_eye_glow Delete();
level._numZombEyeGlows --;
}

self haseyes(0);*/
}

I think you have these backwards?
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 18 October 2013
Last active: 14 days ago
Posts
652
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
×
InFInIX's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
InFInIX's Contact & Social Links
I think you have these backwards?

switched :)

 
Loading ...