Zatsupachi
10 years ago
So...

I want a unit to kill itself after shooting its weapon.

What I've tried:
FireWeaponUpdate - it killed the other units beside it too.
FireOCL - spawns an object that emits a kill field for around the shooter. Doesn't work-- or more over, I couldn't check since it disappears nearly-instantaneously.

ALSO DRONES.
Is there a way to let drones target things more reliably?
They seem to not shoot down everything what their master is trying to shoot.
"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
Sponsor
acidbrain
10 years ago
Did you try this module?

FireOCLAfterWeaponCooldownUpdate
  WeaponSlot = [PRIMARY/SECONDARY/TERTIARY]
  TriggeredBy = [entry(s) from Upgrade.INI]
  ConflictsWith = [entry(s) from Upgrade.INI]
  OCL = [entry from ObjectCreationList.INI]
  MinShotsToCreateOCL = [integer]
  OCLLifetimePerSecond = [integer]
  OCLLifetimeMaxCap = [integer]
End
Don't know if you actually need an upgrade to trigger this module, never used it.

Maybe you can give the spawned object a `FireWeaponWhenDeadBehavior` module with a weapon that has PENALTY damagetype and only the unit that fires the weapon will be injured by the weapon.
Don't know if it works, didn't test it.
Panem et kirkinses
Gameanater
10 years ago


ALSO DRONES.
Is there a way to let drones target things more reliably?
They seem to not shoot down everything what their master is trying to shoot.

Originally Posted by: Zatsupachi 



I don't remember if the Battle Drone has turret code, but for that at least it seems like you could change the TurningSpeed for the turret (if it has one) to something like 99999 to help. The Hellfire Drone seems to do an alright job targeting the same thing its boss is to me but the Battle Drone does seem a little slow.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
oliver
  • oliver
  • 50.25% (Neutral)
  • Major
10 years ago
For the Drones targeting, check the ROTR american wasp or the Recycler wasp, it does what you want.
3D/2D Artist
Zatsupachi
10 years ago
The WASP system.
It was basically-- the same concept... as the Unit I was making.

However. I aimed for something complex.

While the WASP System from RoTR, had SHOOTING Drones...

Mine don't. They kamikaze themselves into their targets. My problem is they have certain wait time till they detonate on their target-- which I fear will be enough time to shoot down the drone before it can detonate. Make the unit essentially useless if your opponent just so happens to have the smallest amount of anti-air.

Hence I thought of alternatives.
Like having the drone "shoot itself" towards the enemy.

By means, the drone shoots a weapon that kills itself and the weapon's projectile is the drone itself- with a little trickery, I can make it look like the drones are boosting into their targets... I am using the PENALTY damage type that emits from the shot weapon, on the unit to kill it and made an armor susceptible to it. But just seems to kill the other drones besides the one shooting.
"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
Gameanater
10 years ago

The WASP system.
It was basically-- the same concept... as the Unit I was making.

However. I aimed for something complex.

While the WASP System from RoTR, had SHOOTING Drones...

Mine don't. They kamikaze themselves into their targets. My problem is they have certain wait time till they detonate on their target-- which I fear will be enough time to shoot down the drone before it can detonate. Make the unit essentially useless if your opponent just so happens to have the smallest amount of anti-air.

Hence I thought of alternatives.
Like having the drone "shoot itself" towards the enemy.

By means, the drone shoots a weapon that kills itself and the weapon's projectile is the drone itself- with a little trickery, I can make it look like the drones are boosting into their targets... I am using the PENALTY damage type that emits from the shot weapon, on the unit to kill it and made an armor susceptible to it. But just seems to kill the other drones besides the one shooting.

Originally Posted by: Zatsupachi 



You probably want to base the drone off a GLA Terrorist if you're going for a $u!c!de unit and then add all the Slave code and the flying locomotor after.

As for the delay, maybe try just giving it more health or make it change to a super-fast locomotor when it charges the enemy?

Wisdom from the great AnnihilationZH:

Always mod the unit closest in function, not appearance, to what you have in mind.


Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Zatsupachi
10 years ago


-snip-

You probably want to base the drone off a GLA Terrorist if you're going for a $u!c!de unit and then add all the Slave code and the flying locomotor after.

As for the delay, maybe try just giving it more health or make it change to a super-fast locomotor when it charges the enemy?

Wisdom from the great AnnihilationZH:

Always mod the unit closest in function, not appearance, to what you have in mind.

Originally Posted by: Gameanater 



I did base it off a terrorist.
It doesn't exactly fit well with drone code.

I had it once where the drones are flying closer to the ground, they will immediately detonate as soon as they collide with their target-- it looks cool but... It looks visually messed up due to the Drone generator being way above. Besides, I wanted this thing to target Air units too.
"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
Gameanater
10 years ago
Darn.

The limitations of ZH modding. :/

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
oliver
  • oliver
  • 50.25% (Neutral)
  • Major
10 years ago
Yh, then make the projectile the drone bomb, and fire a weapon that kills itself when it fires, like a suicide weapon, use the fireweaponupdate, or something like that.
3D/2D Artist