Tanks to use power?
is there a way?
Tanks to use power?
I was wondering if there was a way to get a tank to require and consume power?
Hmm... what about to create EMP mass weapon effects in OpenRAProteus wrote: ↑ I tried adding RequiresPower to a unit, all it does is prevent them from shooting their weapon if you have low power; they can still move around
-
- Posts: 126
- Joined: Tue Jun 26, 2012 3:37 am
- Location: St. Louis, MO
Yes and no. There's no way to cause an EMP without a scripted effect, unless the tank just outright explodes when hit with EMP.
You can make a projectile do "0%" to non-armored units, but 100% to "light" and "heavy", AKA all vehicles. So that would work. But to get an EMP like in the other games which temp disables units, you'd have to change the game's source code to have an instance where, when hit by X projectile, vehicle Y turns into vehicle Z. And after a set amount of time, Z turns back into Y.
This is overcomplicating matters. The existing actor disabling code (used by the low power state and manual power down) was written with an eventual EMP effect in mind (to be used by the Ion Cannon in the c&c mod). You can easily add a new IDisable implementation for EMP, and modify the movement code to stop disabled units from moving.tacozmeister wrote: ↑you'd have to change the game's source code to have an instance where, when hit by X projectile, vehicle Y turns into vehicle Z. And after a set amount of time, Z turns back into Y.
-
- Posts: 126
- Joined: Tue Jun 26, 2012 3:37 am
- Location: St. Louis, MO
Oh! Well. That works too. I don't look ~into~ the code, I just do yaml. Point was: no way to do it with YAML. Was completely unsure, but bottom line it'd involve going into the actual source. Thank you for clarifyingSleipnir wrote: ↑This is overcomplicating matters. The existing actor disabling code (used by the low power state and manual power down) was written with an eventual EMP effect in mind (to be used by the Ion Cannon in the c&c mod). You can easily add a new IDisable implementation for EMP, and modify the movement code to stop disabled units from moving.tacozmeister wrote: ↑you'd have to change the game's source code to have an instance where, when hit by X projectile, vehicle Y turns into vehicle Z. And after a set amount of time, Z turns back into Y.
actually my idea is to get rid of the use of power completely. Using either Fuel or Influence instead. you would need to capture towns or strategic positions to gain the Fuel/Influence in order to support more tanks and stuff. buildings would no longer require power. they have their own generators XD