Issue371

Title possibility to prevent bots from dropping any items
Priority idea Status resolved
Assigned To Xenux Keywords
Linked issues Watchers Xenux

Submitted on 2011-07-24 19h08 by tracker_migration, last changed by matthiaskrgr.

Files
File name Uploaded Type Edit Remove
autogun.jpg matthiaskrgr, 2013-08-22.10:19:37 image/jpeg
Messages
Author: tracker_migration Date: 2011-04-08   13h03
Submitted by matthiaskrgr
It should be possible to prevent the autogun enemy from dropping any items on dying.
Author: bob Date: 2013-08-22   08h43
what is the autogun enemy? is it possible to kill an autogun enemy?
Author: matthiaskrgr Date: 2013-08-22   10h18
The autogun bot looks like this:
Author: matthiaskrgr Date: 2013-08-22   10h19
(see attached image, I just realized we couldn't show it inside the comment. :P

I don't think these should drop a helmet for example or something like this.
It's like a turret (movement speed = 0).

Attached autogun.jpg.
Author: jesusalva Date: 2014-01-06   20h18
The autogun, when die, can drop over 100 circuits, Exterminators, etc.
This should really be prevented. Us could create a separate class for the
autogun that don't drop any item, or add a filter at the function that make the
itens be dropped randomly, so, if the bot ID is "GUN", skip the dropping
sequence. The worst problem, in my opinion, would be retrieve the bot type, to
compare if it is a GUN robot. The rest is pretty easy.
Author: matthiaskrgr Date: 2014-01-07   07h19
I wonder if setting item drop class to 0 will fix this.
Author: jesusalva Date: 2014-01-15   18h16
No, I think. Apparently, class 0 can drop healing drinks. :P
Author: matthiaskrgr Date: 2014-01-18   17h54
mmh, maybe -1 works? *wildly guessing*
Author: jesusalva Date: 2014-01-18   23h30
lol Better not :D
It dropped me -9 circuits, what is a bit crazy.
I've LOST circuits by killing a enemy?!
Author: jesusalva Date: 2014-01-18   23h41
To compare if it is a GUN robot, us can use
strcmp(Droidmap[ThisRobot->type].droidname, "GUN")

In enemy.c:807. There is where us drop items :P
Author: jesusalva Date: 2014-03-25   17h04
Xenux's patch:
http://rb.freedroid.org/r/2024/
Author: matthiaskrgr Date: 2014-11-09   15h29
I pushed this, thanks. ( 4e2f11439f62 )
History
Date User Action Args
2014-11-09 15:29:24matthiaskrgrsetstatus: open -> resolved
messages: + msg2951
2014-03-25 17:04:03jesusalvasetmessages: + msg2750
2014-03-22 21:49:28Xenuxsetassignedto: Xenux
nosy: + Xenux
2014-01-18 23:41:07jesusalvasetmessages: + msg2700
2014-01-18 23:30:03jesusalvasetmessages: + msg2699
2014-01-18 17:54:51matthiaskrgrsetmessages: + msg2697
2014-01-15 18:16:31jesusalvasetmessages: + msg2690
2014-01-07 07:19:22matthiaskrgrsetmessages: + msg2670
2014-01-06 20:18:06jesusalvasetmessages: + msg2651
2013-08-22 10:19:37matthiaskrgrsetfiles: + autogun.jpg
messages: + msg2509
2013-08-22 10:18:17matthiaskrgrsetmessages: + msg2508
2013-08-22 08:43:21bobsetmessages: + msg2502
2011-07-25 11:42:40matthiaskrgrsetpriority: bug -> idea
2011-07-24 19:08:08tracker_migrationcreate