Post: [Script] Homefront Spawn
01-20-2015, 03:23 PM #1
djota
Haxor!
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all, I recently went and saw the Homefront MW2 Spawn, so I decided to convert this to bo2 because there were people who had wanted to see this. I leave here the script

Put this on OnPlayerSpawned()
Originally posted by another user
player thread homefront();


This will put anywhere:
    homefront()
{
self endon("death");
self endon("disconnect");
self endon("welcone_Done");
for(;Winky Winky
{
self EnableInvulnerability();
self disableWeapons();
self hide();
self freezeControls( true );
zoomHeight = 5000;
zoomBack = 4000;
yaw = 55;
origin = self.origin;
self.origin = origin+vector_scale(anglestoforward(self.angles+(0,-180,0)),zoomBack)+(0,0,zoomHeight);
ent = spawn("script_model",(0,0,0));
ent.angles = self.angles+(yaw,0,0);
ent.origin = self.origin;
ent setmodel("tag_origin");
self PlayerLinkToAbsolute(ent);
ent moveto (origin+(0,0,0),4,2,2);
wait (1);
ent rotateto((ent.angles[0]-yaw,ent.angles[1],0),3,1,1);
wait (0.5);
self playlocalsound("ui_camera_whoosh_in");
wait (2.5);
self unlink();
wait (0.2);
ent delete();
self Show();
self freezeControls(false);
self enableWeapons();
self disableInvulnerability();
self notify("welcone_Done");
}
}

vector_scale(vec,scale)
{
vec=(vec[0]*scale,vec[1]*scale,vec[2]*scale);
return vec;
}


Preview



Credits:
Me: Convert to Bo2
Exelo: Fix Script
?? : Creator in MW2

Sorry for my bad speak english. I'm Spanish
(adsbygoogle = window.adsbygoogle || []).push({});

The following 15 users say thank you to djota for this useful post:

-Numb, mason, BullyWiiPlaza, Cleverr, Exelo, ksa_7ooo7, basshead4ever, Mehukas, John, oCmKs_4_LiFe, Vioku, ViRuzModzHD, Vote, xDebugKiller, XDrifteer7
01-21-2015, 06:34 PM #11
oCmKs_4_LiFe
< ^ > < ^ >
shall i leave player thread WelcomeHomeFront(); on player connect?
01-21-2015, 08:06 PM #12
EternalHabit
Former Staff
Originally posted by LiFe View Post
shall i leave player thread WelcomeHomeFront(); on player connect?


Delete that too lol
01-21-2015, 10:05 PM #13
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by xTurntUpLobbies View Post
delete this
     self waittill("spawned_player");
wait .2;

put self thread WelcomeHomeFront(); under onplayerspawned

make sure you have death barrier and skybarrier turned off


My code is not like his, but you can still see your first spawn point. I'm probably just going to figure out how to set the real spawnpoint and do it that way.
01-21-2015, 10:17 PM #14
oCmKs_4_LiFe
< ^ > < ^ >
it always puts every1 out the map its kinda annoying lol
01-21-2015, 10:22 PM #15
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by LiFe View Post
it always puts every1 out the map its kinda annoying lol


I haven't tried this code, but its a good idea to put a check to do it either if you are verified or if your the host. Or maybe only have it done a few times.
01-21-2015, 10:40 PM #16
oCmKs_4_LiFe
< ^ > < ^ >
do you have a no fall damage code? i tried this code but it didnt work. falldamage()
{
if(self.fall == true)
{
setDvar("bg_fallDamageMinHeight", "99999");
self.fall = false;
self iPrintln("No Fall Damage ^2ON");
}
}
01-21-2015, 11:15 PM #17
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by LiFe View Post
do you have a no fall damage code? i tried this code but it didnt work. falldamage()
{
if(self.fall == true)
{
setDvar("bg_fallDamageMinHeight", "99999");
self.fall = false;
self iPrintln("No Fall Damage ^2ON");
}
}


Yeah I tried that dvar or similar one long ago and it wasn't working for me. You could just set the perk that gives you no fall damage.
01-27-2015, 03:46 PM #18
BrevzHoster
Are you high?
Make me wanna go on mw2 bypass nice script
06-10-2015, 10:41 PM #19
Exelo
Banned
Sooooo much stupidity......
Anways, Nice release.

Call : homefront after self waittill( "spawned_player" );

    
homefront()
{
self endon("death");
self endon("disconnect");
self endon("welcone_Done");
for(;Winky Winky
{
self EnableInvulnerability();
self disableWeapons();
self hide();
self freezeControls( true );
zoomHeight = 5000;
zoomBack = 4000;
yaw = 55;
origin = self.origin;
self.origin = origin+vector_scale(anglestoforward(self.angles+(0,-180,0)),zoomBack)+(0,0,zoomHeight);
ent = spawn("script_model",(0,0,0));
ent.angles = self.angles+(yaw,0,0);
ent.origin = self.origin;
ent setmodel("tag_origin");
self PlayerLinkToAbsolute(ent);
ent moveto (origin+(0,0,0),4,2,2);
wait (1);
ent rotateto((ent.angles[0]-yaw,ent.angles[1],0),3,1,1);
wait (0.5);
self playlocalsound("ui_camera_whoosh_in");
wait (2.5);
self unlink();
wait (0.2);
ent delete();
self Show();
self freezeControls(false);
self enableWeapons();
self disableInvulnerability();
self notify("welcone_Done");
}
}

vector_scale(vec,scale)
{
vec=(vec[0]*scale,vec[1]*scale,vec[2]*scale);
return vec;
}

The following user thanked Exelo for this useful post:

BossamBemass

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo