Tanks to use power?
Posted: Sat Aug 25, 2012 5:53 pm
I was wondering if there was a way to get a tank to require and consume power?
OpenRA is a GPLv3 real time strategy game engine which recreates the look and feel of the original C&C games.
https://forum.openra.net/
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
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.
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.
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.