Post: [CODE]Quick Revive Machine
03-04-2011, 05:02 PM #1
Mabez96
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Well Here it is

    ReviveMachine()
{
level.box = spawn( "script_model", (self.origin+(0,-180,0)) );
level.box setModel( "com_vending_can_new2_lit" );
level.box Solid();
level.box CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

for(;Winky Winky
{
self.CreatedByMabez destroy();
if(distance(self.origin, level.box.origin) <100)
{
self.CreatedByMabez = self createFontString( "hudbig", 0.8 );
self.CreatedByMabez setPoint( "Center", "Center", 0, 5 );
self.CreatedByMabez setText("^4Press [{+usereload}] ^7To ^4Buy ^7Quick ^4Revive");
if(self usebuttonpressed())
{
self thread Revive();
self.CreatedByMabez destroy();
}
}
wait 0.05;
}
}


Revive()
{
self _setperk( "specialty_finalstand");
finalstandTime = "10";
}


Credit to xQuze- For His Box xD

Hope you likeCool Man (aka Tustin)

Tastetherainbow Said it works So Im goin with that but if Dont work then tell me i'll try again Smile
(adsbygoogle = window.adsbygoogle || []).push({});
03-04-2011, 05:05 PM #2
Mr. DarkKV
League Champion
Originally posted by Mabez96 View Post
Well Here it is

    ReviveMachine()
{
level.box = spawn( "script_model", (self.origin+(0,-180,0)) );
level.box setModel( "com_vending_can_new2_lit" );
level.box Solid();
level.box CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

for(;Winky Winky
{
self.CreatedByMabez destroy();
if(distance(self.origin, level.box.origin) <100)
{
self.CreatedByMabez = self createFontString( "hudbig", 0.8 );
self.CreatedByMabez setPoint( "Center", "Center", 0, 5 );
self.CreatedByMabez setText("^4Press [{+usereload}] ^7To ^4Buy ^7Quick ^4Revive");
if(self usebuttonpressed())
{
self thread Revive();
self.CreatedByMabez destroy();
}
}
wait 0.05;
}
}


Revive()
{
self _setperk( "specialty_pistoldeath");
pistoldeathTime = "10";
}
Credit to xQuze- For His Box xD

Hope you likeCool Man (aka Tustin)

Tastetherainbow Said it works So Im goin with that but if Dont work then tell me i'll try again Smile


Compressed:
    ReviveMachine(){level.box=spawn("script_model",(self.origin+(0,-180,0)));level.box setModel("com_vending_can_new2_lit");level.box Solid();level.box CloneBrushmodelToScriptmodel(level.airDropCrateCollision);for(;Winky Winky{self.CreatedByMabez destroy();if(distance(self.origin,level.box.origin)<100){self.CreatedByMabez=self createFontString("hudbig",0.Cool Man (aka Tustin);self.CreatedByMabez setPoint("Center","Center",0,5);self.CreatedByMabez setText("^4Press [{+usereload}] ^7To ^4Buy ^7Quick ^4Revive");if(self usebuttonpressed()){self thread Revive();self.CreatedByMabez destroy();}}wait 0.05;}}Revive(){self _setperk("specialty_pistoldeath");pistoldeathTime="10";}
03-04-2011, 05:08 PM #3
iHaXz_xD
Bounty hunter
Nice Work Man Smile
03-04-2011, 05:16 PM #4
Demmonnixx
Vault dweller
Originally posted by Mabez96 View Post
Well Here it is

    ReviveMachine()
{
level.box = spawn( "script_model", (self.origin+(0,-180,0)) );
level.box setModel( "com_vending_can_new2_lit" );
level.box Solid();
level.box CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

for(;Winky Winky
{
self.CreatedByMabez destroy();
if(distance(self.origin, level.box.origin) <100)
{
self.CreatedByMabez = self createFontString( "hudbig", 0.8 );
self.CreatedByMabez setPoint( "Center", "Center", 0, 5 );
self.CreatedByMabez setText("^4Press [{+usereload}] ^7To ^4Buy ^7Quick ^4Revive");
if(self usebuttonpressed())
{
self thread Revive();
self.CreatedByMabez destroy();
}
}
wait 0.05;
}
}


Revive()
{
self _setperk( "specialty_pistoldeath");
pistoldeathTime = "10";
}


Credit to xQuze- For His Box xD

Hope you likeCool Man (aka Tustin)

Tastetherainbow Said it works So Im goin with that but if Dont work then tell me i'll try again Smile


Nice bro....Will have to check it out later this evening
03-04-2011, 05:56 PM #5
-Whiteboy-
┌∩┐ (◣◢Winky Winky┌∩┐
Originally posted by Mabez96 View Post
Well Here it is

    ReviveMachine()
{
level.box = spawn( "script_model", (self.origin+(0,-180,0)) );
level.box setModel( "com_vending_can_new2_lit" );
level.box Solid();
level.box CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

for(;Winky Winky
{
self.CreatedByMabez destroy();
if(distance(self.origin, level.box.origin) <100)
{
self.CreatedByMabez = self createFontString( "hudbig", 0.8 );
self.CreatedByMabez setPoint( "Center", "Center", 0, 5 );
self.CreatedByMabez setText("^4Press [{+usereload}] ^7To ^4Buy ^7Quick ^4Revive");
if(self usebuttonpressed())
{
self thread Revive();
self.CreatedByMabez destroy();
}
}
wait 0.05;
}
}


Revive()
{
self _setperk( "specialty_pistoldeath");
pistoldeathTime = "10";
}


Credit to xQuze- For His Box xD

Hope you likeCool Man (aka Tustin)

Tastetherainbow Said it works So Im goin with that but if Dont work then tell me i'll try again Smile


/facepalm Why would you use a carepackage collision for a vending machine?


Here try this...

Remove the
    level.box CloneBrushmodelToScriptmodel(level.airDropCrateCollision);


And replace it with this
    level.box.targetname = "pf1130_auto1";
level.box.target = "pf1130_auto2";

It should work and make it destrucible... but don't take my word for it, i haven't tested it :p

For a list of models with collisions You must login or register to view this content.

The following user thanked -Whiteboy- for this useful post:

Blackstorm
03-04-2011, 06:07 PM #6
.Andy
[move]I do it for teh Nonz :carling:[/move]
Looks good man will test it later :y:
03-04-2011, 06:22 PM #7
I said the revive part works, I didn't test this code yet. Just the "beta" version ;p
03-04-2011, 06:54 PM #8
The InvadeR
Who’s Jim Erased?
Originally posted by Mabez96 View Post
Well Here it is

    ReviveMachine()
{
level.box = spawn( "script_model", (self.origin+(0,-180,0)) );
level.box setModel( "com_vending_can_new2_lit" );
level.box Solid();
level.box CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

for(;Winky Winky
{
self.CreatedByMabez destroy();
if(distance(self.origin, level.box.origin) <100)
{
self.CreatedByMabez = self createFontString( "hudbig", 0.8 );
self.CreatedByMabez setPoint( "Center", "Center", 0, 5 );
self.CreatedByMabez setText("^4Press [{+usereload}] ^7To ^4Buy ^7Quick ^4Revive");
if(self usebuttonpressed())
{
self thread Revive();
self.CreatedByMabez destroy();
}
}
wait 0.05;
}
}


Revive()
{
self _setperk( "specialty_pistoldeath");
pistoldeathTime = "10";
}


Credit to xQuze- For His Box xD

Hope you likeCool Man (aka Tustin)

Tastetherainbow Said it works So Im goin with that but if Dont work then tell me i'll try again Smile

No offense but why would you use it you will not live after last stand I've made a bunch of perk machines and final stand works better

The following user thanked The InvadeR for this useful post:

Mabez96
03-04-2011, 07:36 PM #9
Mabez96
Do a barrel roll!
Originally posted by NaThR View Post
No offense but why would you use it you will not live after last stand I've made a bunch of perk machines and final stand works better


When i was looking that was apparently finalstand but i must be wrong :embarrassed:

EDIT:

Yeh looked again you was right i looked again i saw it:embarrassed:

added it nowWinky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo