Post: [Release] Maniac Crate
08-12-2016, 11:16 AM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all - I got bored so I thought I would try to re-make the maniac killstreak from Ghosts. It uses the same drawtext & drawshader functions that are in Sharks (and quite possibly most??) Menu Base. If you need the functions, they're here;

    
drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
{
hud = self createFontString(font, fontScale);
hud setText(text);
hud.x = x;
hud.y = y;
hud.color = color;
hud.alpha = alpha;
hud.glowColor = glowColor;
hud.glowAlpha = glowAlpha;
hud.sort = sort;
hud.alpha = alpha;
return hud;
}

drawShader(shader, x, y, width, height, color, alpha, sort)
{
hud = newClientHudElem(self);
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}


and here is my thing;

    

init()
{
level thread onPlayerConnect();
//Dont Forget These
precacheshader("per_scavenger");
precacheshader("perk_lightweight");
precacheshader("perk_marathon");
precacheshader("perk_hacker");
}

Maniac(origin, angles)
{
level.maniac = spawnEntity("script_model", "t6_wpn_supply_drop_ally", origin+ (0, 0, 20), angles);
 self thread Maniac_think();
}

Maniac_think()
{
level endon("stop_maniac");
foreach(player in level.players)
{
for(;Winky Winky
{
if(distance(player.origin, level.maniac.origin) < 50)
{
player.nearmaniac = true;
player setlowermessage("Press [{+usereload}] For Maniac");
if(player usebuttonpressed() && player.nearmaniac)*
{
player.mantxt = drawText("You're A ^1Maniac^7!!!", "objective", 4, 0, -20, (1, 1, 1), 1, (0, 0.58, 1), 1, 3);
player.mantxt2 = drawText("Perks Given:", "objective", 2, 0, 20, (1, 1, 1), 1, (0, 0.58, 1), 1, 3);
player.shader[0] = drawShader("perk_scavenger", -100, 50, 50, 50, (255, 255, 255), 1, 0);
player.shader[1] = drawShader("perk_lightweight", -40, 50, 50, 50, (255, 255, 255), 1, 0);
player.shader[2] = drawShader("perk_marathon", 20, 50, 50, 50, (255, 255, 255), 1, 0);
player.shader[3] = drawShader("perk_hacker", 80, 50, 50, 50, (255, 255, 255), 1, 0);
foreach(player in level.players) player iprintlnbold("^1Maniac ^7On The Loose!!!");
player setclientuivisibilityflag("g_compassShowEnemies", 1);
player takeallweapons();
player giveweapon("hatchet_mp");
player setweaponammoclip("hatchet_mp", 2);
player giveweapon("knife_held_mp");
player switchtoweapon("knife_held_mp");
player clearperks();
player setperk("specialty_scavenger");
player setperk("specialty_movefaster");
player setperk("specialty_fastmantle");
player setperk("specialty_fallheight");
player setperk("specialty_unlimitedsprint");
player setperk("specialty_showenemyequipment");
player setperk("specialty_delayexplosive");
player.maxhealth = 300;
player.health = player.maxhealth;
level.maniac delete();
clearlowermessage();
level notify("stop_maniac");
}
}
if(distance(player.origin, level.maniac.origin) > 50)*
{
clearlowermessage();
player.nearmaniac = false;
}
wait 0.05;
}
}
}
OnDeath(player)
{
for(;Winky Winky
{
if(player.health == 0)*
{
player setclientuivisibilityflag("g_compassShowEnemies", 0);
player.mantxt destroy();
player.mantxt2 destroy();
foreach(shad in player.shader) shad destroy();
}
wait 0.05;
}
}

spawnEntity(class, model, origin, angle)
{
entity = spawn(class, origin);
entity.angles = angle;
entity setModel(model);
return entity;
}


Also dont forget self thread OnDeath(self); in the onplayerspawned() part.

Points;

-bumped up the maxhealth a little from 100 to 300 so it takes a bit more to kill you
-only lasts the current life - once you die, your back to normal again
-gives you scavenger, lightweight, extreme conditioning & engineer
-gives you 2 axes and a handheld knife

I would say anyone wanna video this, would be appreciated, but Im not sure theres a point lol

Anyways, ye...have fun.

The following 4 users say thank you to seanhellen for this useful post:

DF_AUS, DoozyXGod, Dumble, OfficialCoolJay
08-12-2016, 01:22 PM #2
Dumble
Bounty hunter
Thanks sexy

The following user thanked Dumble for this useful post:

seanhellen
08-12-2016, 02:07 PM #3
jimmy29304
Do a barrel roll!
nice sean Happy

The following user thanked jimmy29304 for this useful post:

seanhellen
08-12-2016, 03:11 PM #4
oCmKs_4_LiFe
< ^ > < ^ >
Originally posted by seanhellen View Post
Hi all - I got bored so I thought I would try to re-make the maniac killstreak from Ghosts. It uses the same drawtext & drawshader functions that are in Sharks (and quite possibly most??) Menu Base. If you need the functions, they're here;

    
drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
{
hud = self createFontString(font, fontScale);
hud setText(text);
hud.x = x;
hud.y = y;
hud.color = color;
hud.alpha = alpha;
hud.glowColor = glowColor;
hud.glowAlpha = glowAlpha;
hud.sort = sort;
hud.alpha = alpha;
return hud;
}

drawShader(shader, x, y, width, height, color, alpha, sort)
{
hud = newClientHudElem(self);
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}


and here is my thing;

    

init()
{
level thread onPlayerConnect();
//Dont Forget These
precacheshader("per_scavenger");
precacheshader("perk_lightweight");
precacheshader("perk_marathon");
precacheshader("perk_hacker");
}

Maniac(origin, angles)
{
level.maniac = spawnEntity("script_model", "t6_wpn_supply_drop_ally", origin+ (0, 0, 20), angles);
 self thread Maniac_think();
}

Maniac_think()
{
level endon("stop_maniac");
foreach(player in level.players)
{
for(;Winky Winky
{
if(distance(player.origin, level.maniac.origin) < 50)
{
player.nearmaniac = true;
player setlowermessage("Press [{+usereload}] For Maniac");
if(player usebuttonpressed() && player.nearmaniac)*
{
player.mantxt = drawText("You're A ^1Maniac^7!!!", "objective", 4, 0, -20, (1, 1, 1), 1, (0, 0.58, 1), 1, 3);
player.mantxt2 = drawText("Perks Given:", "objective", 2, 0, 20, (1, 1, 1), 1, (0, 0.58, 1), 1, 3);
player.shader[0] = drawShader("perk_scavenger", -100, 50, 50, 50, (255, 255, 255), 1, 0);
player.shader[1] = drawShader("perk_lightweight", -40, 50, 50, 50, (255, 255, 255), 1, 0);
player.shader[2] = drawShader("perk_marathon", 20, 50, 50, 50, (255, 255, 255), 1, 0);
player.shader[3] = drawShader("perk_hacker", 80, 50, 50, 50, (255, 255, 255), 1, 0);
foreach(player in level.players) player iprintlnbold("^1Maniac ^7On The Loose!!!");
player setclientuivisibilityflag("g_compassShowEnemies", 1);
player takeallweapons();
player giveweapon("hatchet_mp");
player setweaponammoclip("hatchet_mp", 2);
player giveweapon("knife_held_mp");
player switchtoweapon("knife_held_mp");
player clearperks();
player setperk("specialty_scavenger");
player setperk("specialty_movefaster");
player setperk("specialty_fastmantle");
player setperk("specialty_fallheight");
player setperk("specialty_unlimitedsprint");
player setperk("specialty_showenemyequipment");
player setperk("specialty_delayexplosive");
player.maxhealth = 300;
player.health = player.maxhealth;
level.maniac delete();
clearlowermessage();
level notify("stop_maniac");
}
}
if(distance(player.origin, level.maniac.origin) > 50)*
{
clearlowermessage();
player.nearmaniac = false;
}
wait 0.05;
}
}
}
OnDeath(player)
{
for(;Winky Winky
{
if(player.health == 0)*
{
player setclientuivisibilityflag("g_compassShowEnemies", 0);
player.mantxt destroy();
player.mantxt2 destroy();
foreach(shad in player.shader) shad destroy();
}
wait 0.05;
}
}

spawnEntity(class, model, origin, angle)
{
entity = spawn(class, origin);
entity.angles = angle;
entity setModel(model);
return entity;
}


Also dont forget self thread OnDeath(self); in the onplayerspawned() part.

Points;

-bumped up the maxhealth a little from 100 to 300 so it takes a bit more to kill you
-only lasts the current life - once you die, your back to normal again
-gives you scavenger, lightweight, extreme conditioning & engineer
-gives you 2 axes and a handheld knife

I would say anyone wanna video this, would be appreciated, but Im not sure theres a point lol

Anyways, ye...have fun.


No need for a whole thread for one script. could of posted it in the gsc scripts part 3 thread, just saying Smile
08-12-2016, 03:33 PM #5
Dumble
Bounty hunter
Originally posted by LiFe View Post
No need for a whole thread for one script. could of posted it in the gsc scripts part 3 thread, just saying Smile


He might of wanted more people to see it, leave him alone

The following 2 users say thank you to Dumble for this useful post:

itsSorrow, seanhellen

The following user groaned Dumble for this awful post:

Procyon
08-12-2016, 07:11 PM #6
seanhellen
Are you high?
Originally posted by LiFe View Post
No need for a whole thread for one script. could of posted it in the gsc scripts part 3 thread, just saying Smile


Tbh, i didnt think of that lol...dunno how often that thread gets updated.

Originally posted by Dumble View Post
He might of wanted more people to see it, leave him alone


Hehe get him told. Thanks Happy

Originally posted by Dumble View Post
Thanks sexy


Originally posted by jimmy29304 View Post
nice sean Happy


Cheers guys :yes:
Last edited by seanhellen ; 08-12-2016 at 07:13 PM.
08-15-2016, 02:57 AM #7
Patrick
League Champion
Sexy stuff man, you deserve way more rep for dank h4x like this!

The following user thanked Patrick for this useful post:

seanhellen
08-15-2016, 06:51 AM #8
seanhellen
Are you high?
Lol thanks :yes:

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo