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

perk shaders in middle of screen with iw zombies type anims

broken avatar :(
Created 7 years ago
by AdvancedDecay
0 Members and 1 Guest are viewing this topic.
1,563 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 13 March 2016
Last active: 4 years ago
Posts
76
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
AdvancedDecay's Groups
AdvancedDecay's Contact & Social Links
how do I place the perk shaders in the middle of my screen at the bottom just like in zombies in spaceland and I also want it to slide along whenever  new perk shader activates on the screen
Last Edit: March 15, 2017, 01:52:41 am by AdvancedDecay
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 13 March 2016
Last active: 4 years ago
Posts
76
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
AdvancedDecay's Groups
AdvancedDecay's Contact & Social Links
still needing help guys
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 7 May 2015
Last active: 1 month ago
Posts
312
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
×
EmpGeneral's Groups
EmpGeneral's Contact & Social LinksldraweEletricStorm
Edit your hud.menu.You can find it on raw>ui>hud.menu
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Normal WaW perks are not done through the hud.menu but are hud-elements created in _zombiemode_perks. You have to edit them there.

Code Snippet
Plaintext

perk_hud_create( perk )
{
if ( !IsDefined( self.perk_hud ) )
{
self.perk_hud = [];
}

/#
if ( GetDVarInt( "zombie_cheat" ) >= 5 )
{
if ( IsDefined( self.perk_hud[ perk ] ) )
{
return;
}
}
#/


shader = "";

switch( perk )
{
case "specialty_armorvest":
shader = "specialty_juggernaut_zombies";
break;

case "specialty_quickrevive":
shader = "specialty_quickrevive_zombies";
break;

case "specialty_fastreload":
shader = "specialty_fastreload_zombies";
break;

case "specialty_rof":
shader = "specialty_doubletap_zombies";
break;

default:
shader = "";
break;
}

hud = create_simple_hud( self );
hud.foreground = true;
hud.sort = 1;
hud.hidewheninmenu = false;
hud.alignX = "left";
hud.alignY = "bottom";
hud.horzAlign = "left";
hud.vertAlign = "bottom";
hud.x = self.perk_hud.size * 30;
hud.y = hud.y - 70;
hud.alpha = 1;
hud SetShader( shader, 24, 24 );

self.perk_hud[ perk ] = hud;
}


You could use:
Code Snippet
Plaintext
	hud.horzAlign = "center"; 
But you also need to adjust it here, if you want it to stay nice and centered:
Code Snippet
Plaintext
		hud.x = self.perk_hud.size * 30; 



In _zombiemode_score you can find an example of how to make moving hud-elements:
Code Snippet
Plaintext
	// Move the hud
hud MoveOverTime( time );
hud.x -= 20 + RandomInt( 40 );
hud.y -= ( -15 + RandomInt( 30 ) );

wait( half_time );

// Fade half-way through the move
hud FadeOverTime( half_time );
hud.alpha = 0;

wait( half_time );




 
Loading ...