Author Topic: A "Non Friendly Firing" Sentry?  (Read 1735 times)

I think I just realized the problem. The sentry has it's team set by %player.client.getTeam(); which it should, but it was comparing it to %player.getTeam(); to check if they're on the same team. So this should be a fix. Man testing little things like this would be easier if I had people to help me out. Sorry for not catching it earlier.

https://www.dropbox.com/s/gsve9hndgwrjhtn/Weapon_Sentry.zip?dl=0

I think I just realized the problem. The sentry has it's team set by %player.client.getTeam(); which it should, but it was comparing it to %player.getTeam(); to check if they're on the same team. So this should be a fix. Man testing little things like this would be easier if I had people to help me out. Sorry for not catching it earlier.

https://www.dropbox.com/s/gsve9hndgwrjhtn/Weapon_Sentry.zip?dl=0
Nice fix. To test add ons like this you could possibly start up 2 BL's if no one is available to help

Nice fix. To test add ons like this you could possibly start up 2 BL's if no one is available to help


I had three open :c
Using two different keys, maybe I should host an internet instead of a LAN game.

I had three open :c
Using two different keys, maybe I should host an internet instead of a LAN game.
I found out this. Here is the solution:

-The MG Turret works just fine with FF so nice work.

- Rifle & Rocket Turrets still Teamkill

If you can, could you add this effect to the Rifle & Rocket Turrets too?

Edit: You could copy the script fix you added to the MG Turret.
« Last Edit: September 05, 2014, 07:24:17 PM by Nibble »

That shouldn't happen at all. I figured that they all use the same two functions seeing as to how generic they are, I mean function sentryLogicLoop() and function createSentryAtPlayer(%player) but I'll see if there's something I missed.

Edit:
Found the problem, the codes for this add-on are all placed in different sections in a confusing manor.
Have a fix. Also I found this bit of code a bit interesting:
Code: [Select]
function playerSentryTop::onDisabled(%this, %obj, %state)
{
if(isObject(%obj.sentryOwner))
{
if($sentryAnnounceToMinigame)
{
%obj.sentryOwner.minigame.messageAllExcept(%obj.sentryOwner, "", "\c3" @ %obj.sentryOwner.name @ "'s \c2sentry is \c0DOWN\c2!");
messageClient(%obj.sentryOwner, "", "\c2Your sentry is \c0DOWN\c2!");
}else{
messageClient(%obj.sentryOwner, "", "\c2Your sentry is \c0DOWN\c2!");
}
}
blah blah
Meaning creating a sapper, if given a model, I can make it work fine with this code.
« Last Edit: September 05, 2014, 07:42:32 PM by Thorfin25 »