Posted: Wed Apr 01, 2009 3:06 am Post subject:
Grinders
I can't think of an instance of something similiar to this that exists in generals, with the exception of the Saboteur, but I think JJ_ said that was hardcoded. If it wasn't, It could have worked beautifully.
If the unit enters the Grinder building, spawn a crate containing x amount of money, and have the building pick it up.
Maybe there's some other kind of module I can play around with. Have the unit enter the building, have the unit die/destroyed, grant money somehow.
sigh....soylent green for yuri! _________________ Please, read the signature rules of the forum. QUICK_EDIT
I actually thought about it before. To make a Grinder, make it able to contain units using garrison logic that only allows allied units. The Grinder itself would emit a weapon with KILL_GARRISON damage type (whatever the exact name is) constantly as a FireWeaponUpdate (again not sure about the exact name). The weapon will kill any unit that garrisons it. The weapon will have a special death type, and every single unit is coded so that the death type will spawn a crate x% (set in the create, so you'll need a lot of crates) of the unit value which will be picked up by the Grinder. The animation will be played as a transition state from garrisoned to normal.
Well another theory. Let's see how well it works. QUICK_EDIT
I was thinking of a way to get around all those crates; manipulating the bounty hunter code somehow. What do you think of this? When you bounty hunt, you basically keep a percentage of the value of the unit you kill, so if I can make this exclusive to the grinder, then when a unit enters the grinder and gets killed, you get a percentage of it's costs. _________________ Please, read the signature rules of the forum. QUICK_EDIT
I don't think you can make the bounty logic affect only one unit. Though, I can see how you can make it work by putting the module into the Grinder so that you earn money by killing instead of sending stuff into it, though I think once you built it, the bounty effect will still stay even when the Grinder is destroyed, so another idea is to make it into a power of some sort. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum