Two (no, make that ONE) wreckage bugs

Two (no, make that ONE) wreckage bugs

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Two (no, make that ONE) wreckage bugs

Post by Caydr »

Select a construction unit, hover your cursor over a tree. In OTA, this would change the unit's info display to show how much E/M a reclaimable object is worth... Can that be done without too much work?

Also, in OTA when a unit self-destructed this would make it not leave a wreck. Really skilled players would sometimes have a unit self-destruct just as it was nearing 0 health, for instance, depriving their enemy of resources. Or if defeat was assured, they would self-d for the same purpose in a FFA, to spite the person who killed them ;) (This might not be an issue after all, nevermind. First one still applies tho)
Last edited by Caydr on 06 Sep 2006, 20:22, edited 2 times in total.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: Two wreckage bugs

Post by Acidd_UK »

Caydr wrote:Also, in OTA when a unit self-destructed this would make it not leave a wreck. Really skilled players would sometimes have a unit self-destruct just as it was nearing 0 health, for instance, depriving their enemy of resources. Or if defeat was assured, they would self-d for the same purpose in a FFA, to spite the person who killed them ;)
Isn't that kind of exploity? It seems so...
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Re: Two wreckage bugs

Post by NOiZE »

Caydr wrote:Also, in OTA when a unit self-destructed this would make it not leave a wreck. Really skilled players would sometimes have a unit self-destruct just as it was nearing 0 health, for instance, depriving their enemy of resources. Or if defeat was assured, they would self-d for the same purpose in a FFA, to spite the person who killed them ;)
I thought that self D won't leave a wreck...
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Post by Nemo »

I've never seen a self D leave a wreck.

Also, I'm pretty sure that it shows stats for reclaimable objects already.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

well if you self-d the AA Commanders you'll see a wreck

but apart from them i never see wrecks from self-Ding units...
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

In OTA atleast wreckage leaving was script controlled, for TACW I set it up to always leave a wreck, even with self-d.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

FLOZi wrote:In OTA atleast wreckage leaving was script controlled, for TACW I set it up to always leave a wreck, even with self-d.
OOOOOooooooo! Maybe that's the problem, I'd never thought it was to do with the script. I'll nag my genius scripter about it... But even if this one's not valid, the first point still is.
Hellspawn
Posts: 392
Joined: 24 Feb 2006, 11:54

Post by Hellspawn »

Yeah only comm leaves corpse when self-d.

And you can already see how much e/m you can get from reclaiming.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

Hellspawn wrote:And you can already see how much e/m you can get from reclaiming.
Not when you have a unit selected...
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

The corpsetype variable (second parameter of the Killed() function) determines the wreckage the unit leaves behind. Generally self-d causes a high severity (probably 100) so having anything with more than 99 severity return corpsetype 3 (no corpse according to a tutorial, I'd guess it's the third wreckage in the unit's wreckage chain which would usually be no wreckage at all) should prevent self-d wreckages. If you have death animations (i.e. sleep statements in the Killed() function) the function's return value is used instead of corpsetype.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Thanks KDR. I think I'm going to risk it all and edit the script myself. I'm going to be really careful, but anyone living in or around Ontario should go to their bomb shelters just in case.
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

Please do fix this Cadyr. Players have taken to self-ding their commanders to get the 14K metal wreckage. This is silly behavour in my opinion.
User avatar
mehere101
Posts: 293
Joined: 15 Mar 2006, 02:38

Post by mehere101 »

j33z ju57 u53 c0mm 3nd5

Yeah, please get rid of that exploit
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

done. Thanks to AF, it is also no longer possible to reclaim your commander either.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Post by Acidd_UK »

10053r wrote:Please do fix this Cadyr. Players have taken to self-ding their commanders to get the 14K metal wreckage. This is silly behavour in my opinion.
You can jusr as easily friendly fire yuor cmdr to death... This is not a solution
Hellspawn
Posts: 392
Joined: 24 Feb 2006, 11:54

Post by Hellspawn »

10053r wrote:Please do fix this Cadyr. Players have taken to self-ding their commanders to get the 14K metal wreckage. This is silly behavour in my opinion.
I call that punishment for playing comm continue :P.



But on more serious note, yeah I would agree at this getting fixed.
User avatar
Foxomaniac
Posts: 691
Joined: 18 Jan 2006, 16:59

Post by Foxomaniac »

Spring : 1
Green Fielders : 0

WINRAR.
uh... yeah.

Still, there's a way around that - not pretty by any means but still do-able (in team games at least :p).
Post Reply

Return to “Engine”