Posts:
379
Threads:
23
Joined:
29 May 2008
Reputation:
I've come across a mod which uses a unit called a "gravitron" (or summat like that) to flip tanks over, now, this is a standard, one-shot weapon.
I was wondering if it could be converted to a deploy weapon (like a psi-wave) and if so, how that coding would look, as I cannot get it to work at all.
I am aware is uses high damage (1000) and the "Rocking" logic to do this, I can get the unit to work, deploy, and execute the firing animation, but nothing takes damage, and nothing flips over.
Any ideas?
MRMIdAS: No longer allowed to criticise Westwood on PPM
Posts:
107
Threads:
17
Joined:
26 Aug 2008
Reputation:
I think these two flags should make it work..
DirectRocker=yes ; put this in the warhead, it should make it flip over completely..
IsTilter=yes ; put this on the vehicles you want to be prone to flipping over.. (this doesn't work on SHPs, keep that in mind.. It sets whether certain vehicle can be flipped over (and a few other stuff)
Please Correct Me If I'm Wrong.. (I haven't modded in quite some time)
ALL HAIL!!!! King of the Loosers
ugh.. Never mind..
"Engine 2 is 'no longer' on fire." -One of those penguins from Madagascar (though, I can't seem to recall that guy's name.. Nay, who cares?)
Posts:
1 773
Threads:
140
Joined:
22 Nov 2004
Reputation:
DirectRocker is an ugly hack, it only damages the explicit target, not the whole area. And without Pushy=yes, you'll be frozen until the target rolls over, which is truly ugly.
Posts:
107
Threads:
17
Joined:
26 Aug 2008
Reputation:
30.08.2008, 20:30:53
(This post was last modified: 30.08.2008, 20:34:24 by Tempest.)
I just tested it..
First, i tested to see if it works as it is.. I added Pushy=yes to Brute infantry entry and added the DirectRocker tag to Brute's attack against tanks.. without removing Rocker tag.. the test was a success, when he smashes tanks, he hits them a few times, each time, rocking them a bit more, and finally, flipping them over (also destroying them)
Second, I tested to see if this works on Areafire weapons.. This time, I added Pushy=yes to the IFV [FV] entry, and changed its Yuri Clone weapon (CRMindBlast).. I duplicated its warhead and changed the verses to make it do damage to Tanks Armor.. Then, I added Rocker, and DirectRocker to the warhead, and Voila.. there you have it.. it was a partial success.. It flips tanks over SOMETIMES.. It flips tanks over sometimes.. (in my case, it flipped over the first Tank Destroyer.. Didn flip the second Tank Destroyer on the first attempt, but did so in the second attempt..) quite funny really, and pretty realistic.. like, coming back the second time with much more force to do what it couldn do the first time....
EDIT: I didn change any of the damage values (they're default), and it doesn't flip in one shot/blow/wave.. it does so step by step.. i think that has to do with the damage (in my case, the damage was basically 200, )
ALL HAIL!!!! King of the Loosers
ugh.. Never mind..
"Engine 2 is 'no longer' on fire." -One of those penguins from Madagascar (though, I can't seem to recall that guy's name.. Nay, who cares?)
Posts:
107
Threads:
17
Joined:
26 Aug 2008
Reputation:
That tutorial makes too much sense... so, the flipping out in my case was not due to the DirectRocker.. (I had a high Rate of Fire).. Thanks D..
ALL HAIL!!!! King of the Loosers
ugh.. Never mind..
"Engine 2 is 'no longer' on fire." -One of those penguins from Madagascar (though, I can't seem to recall that guy's name.. Nay, who cares?)