Author Topic: Sentry and Sapper: 11/6/10  (Read 89480 times)

Hey Bushi. I know it is a glitch, but I find it fairly interesting to set my sentry on the passenger set of my tank/jeep and let it kill!

Do sentries fire at sentries for opposing teams?


Do sentries fire at sentries for opposing teams?
No they do not.
(you would know that if you were at his server when he tested)
Also
Quote
you broke my pants

good now all we need is a dispenser and a teleporter spawner

Found THIS
Code: [Select]
function sentryLogicLoop()
{
for(%i = 0; %i < sentryGroup.getCount(); %i++)
{
%sentry = sentryGroup.getObject(%i);
if(!isObject(%sentry.sentryOwner))
%sentry.kill();
if(isObject(%sentry.sentryOwner.minigame) && %sentry.getState() !$= "Dead" && %sentry.isBuilt)
{
if(!isObject(%sentry.target) || %sentry.target.getState() $= "Dead" || vectorLen(vectorSub(%sentry.target.getPosition(), %sentry.getPosition())) > $sentryTargetLength || ContainerRayCast(%sentry.getPosition(), %sentry.target.getPosition(), $sentryRaycastMasks) != 0)
{
%sentry.target = "";

//new targetting, using radius raycast container search thing, allows for bot aiming
//note: might need to make sure it checks in order of length first?
InitContainerRadiusSearch(%sentry.getPosition(), $sentryTargetLength ,$TypeMasks::PlayerObject); //pos, range, typemasks
%sentry.target = containerSearchNext();
while(%sentry.target != 0 && !%targetAcquired)
{
%sentry.target = ContainerSearchNext();
if(isObject(%sentry.target) && %sentry.target.getState() !$= "Dead" && ContainerRayCast(%sentry.getPosition(), %sentry.target.getPosition(), $sentryRaycastMasks) == 0)
{
%targetAcquired = 1;
}
}
if(%targetAcquired)
{
//play sentry beep sound
serverPlay3D(sentryalertsound, %sentry.getPosition());
}
}

//if you have a target, shoot at it
if(isObject(%sentry.target) && %sentry.target.getState() !$= "Dead" && %sentry.getState() !$= "Dead")
{
//aim
if(%sentry.target.isCrouched())
%sentry.setAimLocation(vectorAdd(%sentry.target.getPosition(), $sentryAimOffsetCrouched));
else
%sentry.setAimLocation(vectorAdd(%sentry.target.getPosition(), $sentryAimOffset));
//shoot
%sentry.setImageTrigger(0, 1);
%sentry.setImageTrigger(0, 0);
}
}
}

if(sentryGroup.getCount() > 0)
$sentryLogicLoopSched = schedule($sentryLoopTime, 0, "sentryLogicLoop");
}
on Pastebin

Suggestion?
RTB pref for whether or not your sentries explode when the player dies?

Also, are teleporters and dispensers out of the question? :3



The Tit (that's what I call him :J), you better host your TF2 server thing with these sentries.

I am.
RiGHT NOW.
WHAT ARE YOU THINKING


also, another suggestion

ability to pick up and move sentries
enable-disable (RTB)?

also, is it impossible to make the sentry actually originally face the direction the person who is placing it is looking

also, a bug report: when controlling a sentry, if your mouse is being held down as you die, the sentry continues to fire in that direction indefinitely

this also occurs if you're holding the mouse button down while exiting the control mode
« Last Edit: November 07, 2010, 09:15:55 PM by The Titanium »

I have two things to say:

1) make it so that it targets bots as well as people.

2) make a mortar sentry. i know theres a rocket sentry but geting over thick walls can be a big broblem. It could have a Minimal range script( if there is one).

« Last Edit: January 18, 2011, 01:02:11 AM by Player »


Was that a suggestion or does it exist..?
Sorry I was late, but this is a request.
And what do you think of it as a request?