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

I apparently am setting up a realistic warzone but seeing the sentries are shooting their own teammates instead of the enemies. Is it possible if someone make sure it shoots the other team even if FF is on?

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

It's Bushido's Sentry. I need it to make sure that it doesn't shoot teammates. If it's all possible I need it to only aim at other teams.

It's Bushido's Sentry.

Should really ask him to do it, sense it is his add-on. But none the less, I did this for ya, however I'm not 100% on if it works or not so be sure to save the original, as I have nobody to test it with. And I'm also lazy.

It's possible to do this with bots. Spawn a blockhead bot, event it so it's datablock is the sentry/turret. It should work at this point, but it would be a good idea to change the team. I don't know if this supports slayer, and slayer might have it's own events to do this anyway.

I just added three lines of coding to make it work with Slayer, if there are no errors in that then it should work just fine. Besides, you say it'll work with bots, don't you know that the sentry is a bot?

Just tested your version. It's not working very properly. it doesn't shoot teammates, however it doesn't shoot the opposite teams.

Crap, alright. I'll actually test it out today and try to get it working then.
Edit:
Do you use Slayer? Just tested it and it seems to work out fine.
« Last Edit: August 31, 2014, 10:27:03 AM by Thorfin25 »

Do you use Slayer? Just tested it and it seems to work out fine.
-Snip-
I do use Slayer. Is that bad? If it's possible, I need to make it work for Slayer. Forgot to mention that. Sorry!
« Last Edit: August 31, 2014, 05:29:36 PM by Nibble »

I do use Slayer. Is that bad? If it's possible, I need to make it work for Slayer. Forgot to mention that. Sorry!

I think he's saying it does work properly with slayer.

I think he's saying it does work properly with slayer.
I need to make it work for Slayer.

it doesn't sound like it works properly for him yet

Well it uses the Slayer function object.getTeam(); to determine what team the clients of the players are on, as well as what team to set the sentry too. So if it's not working for you, and you're using Slayer, try updating Slayer. And be sure that you're starting a TEAM slayer game, because it worked fine for me on custom gamemode using Slayer.

Well it uses the Slayer function object.getTeam(); to determine what team the clients of the players are on, as well as what team to set the sentry too. So if it's not working for you, and you're using Slayer, try updating Slayer. And be sure that you're starting a TEAM slayer game, because it worked fine for me on custom gamemode using Slayer.
I tried this twice now.

It's still not working. I just tried with Slayer, Team Slayer, FF on, and the only thing that is even partially working, is the MG but it still shoots allies. Rifle & Rocket Sentries don't do anything.

That's weird, seems to work fine for me. I'll see if I can't make a version that doesn't rely as much on Slayer.

It appeared to work at first, but then the second time I loaded blockland, it didn't work again. I can't seem to find a perfect mod that allows for the Sentry to work. I'm not talking about bot-like sentries. I'm talking the Toolkit Sentries. I need it to be a sentry that shoots enemies WHILE Friendly Fire is on WITH Slayer.

Did anyone even package minigameCanDamage correctly?

Did anyone even package minigameCanDamage correctly?

Yes, everybody did. The problem is that when friendly fire is on, you can damage your teammates. The sentries simply shoot anybody they can damage.