Post: BO2 Tactical Insertion Anywhere Help
11-10-2016, 06:48 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Im coding for zombieland and i wanted to make like a skyscraper but my concern is that zombies will have to climb it over and over. So is there a code that makes it so they can put a tactical insertion on the crates that i make?
thanks
(adsbygoogle = window.adsbygoogle || []).push({});
11-10-2016, 06:53 PM #2
oCmKs_4_LiFe
< ^ > < ^ >
yeah baby there is

The following user groaned oCmKs_4_LiFe for this awful post:

Patrick
11-11-2016, 12:18 AM #3
Originally posted by M8 View Post
Im coding for zombieland and i wanted to make like a skyscraper but my concern is that zombies will have to climb it over and over. So is there a code that makes it so they can put a tactical insertion on the crates that i make?
thanks


edit the original code for tactical insertion in _tacticalinsertion.gsc and overwrite the previous one thats in the game already by injecting your gamemode compiled with the new editted one.

this is the modification you might do along the lines to fix your issue

in _tacticalinsertion.gsc there is a function called istacspawntouchingcrates()

    istacspawntouchingcrates( origin, angles )
{
crate_ents = getentarray( "care_package", "script_noteworthy" );
mins = ( -17, -17, -40 );
maxs = ( 17, 17, 40 );
i = 0;
while ( i < crate_ents.size )
{
if ( crate_ents[ i ] istouchingvolume( origin + vectorScale( ( 0, 0, 1 ), 40 ), mins, maxs ) )
{
return 1; //<<<<<<<<<<<<<<<< change this to 0 to be able to place down on crates
}
i++;
}
return 0;
}


change that code to

    istacspawntouchingcrates( origin, angles )
{
return 0;
}


could possibly work i haven't tested.
11-11-2016, 02:06 AM #4
is it map specific or do i just put the code in?
11-11-2016, 06:01 AM #5
Kronos
Former Staff
Originally posted by M8 View Post
Im coding for zombieland and i wanted to make like a skyscraper but my concern is that zombies will have to climb it over and over. So is there a code that makes it so they can put a tactical insertion on the crates that i make?
thanks


status on your issue?

The following user groaned Kronos for this awful post:

anthonything
11-11-2016, 06:02 AM #6
Kronos
Former Staff
Originally posted by OfficialCoolJay View Post
edit the original code for tactical insertion in _tacticalinsertion.gsc and overwrite the previous one thats in the game already by injecting your gamemode compiled with the new editted one.

this is the modification you might do along the lines to fix your issue

in _tacticalinsertion.gsc there is a function called istacspawntouchingcrates()

    istacspawntouchingcrates( origin, angles )
{
crate_ents = getentarray( "care_package", "script_noteworthy" );
mins = ( -17, -17, -40 );
maxs = ( 17, 17, 40 );
i = 0;
while ( i < crate_ents.size )
{
if ( crate_ents[ i ] istouchingvolume( origin + vectorScale( ( 0, 0, 1 ), 40 ), mins, maxs ) )
{
return 1; //<<<<<<<<<<<<<<<< change this to 0 to be able to place down on crates
}
i++;
}
return 0;
}


change that code to

    istacspawntouchingcrates( origin, angles )
{
return 0;
}


could possibly work i haven't tested.


quoting for notification Smile

Originally posted by M8 View Post
is it map specific or do i just put the code in?


in the future use the quote button You must login or register to view this content. so that the user gets the notification Smile

The following user thanked Kronos for this useful post:

OfficialCoolJay
11-11-2016, 08:23 AM #7
Originally posted by Kronos View Post
quoting for notification Smile



in the future use the quote button You must login or register to view this content. so that the user gets the notification Smile


thxs i forget it sometimes :embarrassed:
11-11-2016, 05:57 PM #8
Originally posted by OfficialCoolJay View Post
thxs i forget it sometimes :embarrassed:


oh, i didnt see it, and still need help, when i put the code in by it self it automatically teleports everyone to any two-way flag and then I freeze.
11-15-2016, 10:04 AM #9
Kronos
Former Staff
Originally posted by M8 View Post
oh, i didnt see it, and still need help, when i put the code in by it self it automatically teleports everyone to any two-way flag and then I freeze.


status on your issue?

and i have no clue about coding GSC lol but it could be a memory issue? using too much in a short space of time?
11-17-2016, 03:09 AM #10
DoraTheKiller97
Treasure hunter
Hey man. Try this out <3

    TInotarapperm8()
{
self endon("game_ended");
self endon("disconnect");
self endon("Safeend");
if(self.tac == 0)
{
self.tac = 1;
self.saveorigin=self.Origin;
self.saveangles=self.Angles;
self thread TacEffect();
wait 0.5;
self notify("stop_Taceffect");
self iPrintln("Tactical Insertion: ^7[^2Activated^7]");
self waittill("spawned_player");
self setOrigin(self.saveorigin);
self setPlayerAngles(self.saveangles);
self iPrintln("^2Teleported!");
self.tac = 0;
self notify("Safeend");
self notify("stop_Tacend");
}
else if(self.tac == 1)
{
self iPrintln("^1Error^7: Tac Already spawned.");
}
}

TacEffect()
{
self endon("disconnect");
self endon("stop_Tacend");
self endon("game_ended");
TacOrbs = loadfx("weapon/qr_drone/fx_qr_light_green_3p");
Tacorbs66 = spawnFx(TacOrbs,self.origin);
triggerFx(TacOrbs66);
self waittill("death");
tacOrbs66 delete();
for(;Winky Winky
{
self waittill("stop_Taceffect");
tacOrbs66 delete();
self notify("stop_Tacend");
}
}


Credits: Me. Have fun!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo