Notes |
|
|
Also TakeInventory and ConsoleCommand. |
|
|
|
Can you elaborate? What happens and what do you think should happen instead? Also can you post a minimal example wad? |
|
|
(0016863)
|
Unknown
|
2017-02-14 13:10
(edited on: 2017-02-14 16:15) |
|
I Was trying to recreate some CTF Mode Mechanics, In which Flag carrier is supposed to drop flag on hurt, However apparently flags cannot be taken from flag carrier inventory manually via ACS, Example .pk3 uploaded, try it with any CTF Map.
EDIT : Forgot to add #library, Please do it before you load the .pk3, ACS Source is included.
|
|
|
|
Quote from "Torr Samaho" Can you elaborate? What happens and what do you think should happen instead?
You did not answer this. I ran I quick test with your example wad and it seems that a new flag is dropped when the carrier is hurt, but the carrier still keeps the flag it was carrying. Is this what you observe? |
|
|
|
Yea, I don't want to keep it on his inventory :/. |
|
|
|
I checked the source. As far as I can tell, the ZDoom ACS function DropItem is not supposed to remove the item from the inventory of the activator, it will just make the activator toss an instance of the item, no matter if the actor has that item in its inventory at all. So it sounds as if DropItem is doing what ZDoom intends it to do.
You said that TakeInventory doesn't work. Can you elaborate? Do you mean it simply doesn't remove the flag from the inventory or what is happening? |
|
|
(0016880)
|
Unknown
|
2017-02-19 19:25
(edited on: 2017-02-19 19:32) |
|
Yes It doesn't remove the flag, It doesn't work on flags for some reason, What I mean is there's no way to remove flag from carrier inventory unless he's dead, seems like a bug or a missing feature to me.
|
|
|
|
I did a quick test and TakeInventory does work just fine on flags for me. It removes the flag from the inventory. Of course, the flag is completely gone then. You'll need to spawn a new flag yourself somewhere, if you removed one from the game with TakeInventory. Not that a player will immediately pick up the flag in case you spawn it with DropItem from his position. |
|
|
(0016883)
|
Unknown
|
2017-02-19 20:44
(edited on: 2017-02-19 20:57) |
|
Weird, TakeInventory doesn't work on Pain States for me, I'm also using the latest zandronum, and I'm using that pk3 you attatched, well I added the TakeInventory to the script and it still didn't work, neither against bots nor against myself (joined my server twice) and I'm running just Doom2 with that pk3, Is something wrong ?
EDIT : Oooh, the flag was being picked up immediately after it's dropped, dumb me, feel free to close this, so sorry about the inconvinience.
|
|
|
|
No problem. I'll close this then. |
|