making turrets destroyable by team [message #485204] |
Fri, 10 January 2014 14:30 |
Stallion
Messages: 222 Registered: April 2006
Karma: 0
|
Recruit |
|
|
I was wondering if there's a way to have a turret able to be destroyed by your own team.
I'm making deployable turrets and if possible I want them so they're solid, but then I run into the age old problem of what happens if some noob places it in the way of the harvester or blocks a door...
This is a map mod only, not server side and I don't know enough about making my own scripts to even compile... Level editor is the preferred way.
Level edit is my play ground
[Updated on: Fri, 10 January 2014 14:32] Report message to a moderator
|
|
|
|
Re: making turrets destroyable by team [message #485220 is a reply to message #485217] |
Sat, 11 January 2014 09:35 |
Stallion
Messages: 222 Registered: April 2006
Karma: 0
|
Recruit |
|
|
danpaul88 wrote on Sat, 11 January 2014 08:16 | Only easy way I know of is to make them neutral but then they'd either attack both teams or neither depending on the scripts you use.
|
bored much? I thought of that, but for the reasons you put I'm still here asking.
Is there a way to have it still be useful by the team yet able to be destroyed by the team? (i.e. a script perhaps?)
How do servers deal with badly placed turrets?
Level edit is my play ground
[Updated on: Sat, 11 January 2014 09:36] Report message to a moderator
|
|
|
|
|
Re: making turrets destroyable by team [message #485231 is a reply to message #485221] |
Sat, 11 January 2014 17:55 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
zunnie wrote on Sat, 11 January 2014 18:23 |
if (Get_Object_Type(damager) == Get_Object_Type(obj))
{
if (damage > 0.0f)
{
Commands->Apply_Damage(obj, damage,"Explosive",damager);
}
}
Something like this would apply the damage of the shooter to the turret if the team were the same. This way you can team the turret to GDI but still damage it but it would still only attack Nod.
Just an idea :/
|
Pretty sure damage is calculated before it calls scripts so the value would be zero.... so that wouldn't work anyway.
|
|
|