You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mapbase adds a new spawnflag to triggers to allow them to trigger off of items, defined as "Weapons, items, and projectiles". In the code, this means allowing entities with the movetype MOVETYPE_FLYGRAVITY.
Using this flag on a trigger_multiple or a trigger_teleport does not have the desired effect because certain pick up items (item_healthkit, item_battery, and item_ammo_pistol have been tested) do not touch the trigger.
Steps to reproduce
Steps to reproduce the behavior:
In Hammer:
Place a trigger_multiple in a map
Set the trigger_multiple to have the spawnflag 8192 for Items
Add an output on the trigger_multiple to kill the activator
In game:
Load your map
Try to throw an item_healthkit entity into the trigger.
The output will not fire.
Expected behavior
Triggers with flag 8192 should allow pickup items (such as item_healthkit) to touch and fire the appropriate output.
Additional context
This is not simply a matter of the trigger filter. These items do have the movetype MOVETYPE_FLYGRAVITY. In addition, if you set the flag for "Everything" (not including physics debris) these items will still not touch the trigger. That indicates that something is preventing the touch function from being called at all. I tried to test if it had to do with collision groups but I had no success.
I have attached a very bare bones map file that demonstrates this behavior.
This is necessary for Entropy : Zero 2 for the map ez2_c2_4, which uses trigger_teleport. In the map, there is a bug that healthkits and ammo will not teleport properly.
The text was updated successfully, but these errors were encountered:
Huge thanks to Blixibon for looking into this problem. There is a workaround that I am looking at using and I want to comment it on the issue for visibility. It seems like this problem has to do with pickup items having the solid flag FSOLID_TRIGGER. Perhaps entities with this flag can't touch each other.
Running this output temporarily fixes the problem:
ent_fire item_* RemoveSolidFlags 8
I do still think this should be fixed in the future but hopefully this works for maps that need an immediate solution.
Describe the bug
Mapbase adds a new spawnflag to triggers to allow them to trigger off of items, defined as "Weapons, items, and projectiles". In the code, this means allowing entities with the movetype
MOVETYPE_FLYGRAVITY
.Using this flag on a trigger_multiple or a trigger_teleport does not have the desired effect because certain pick up items (
item_healthkit
,item_battery
, anditem_ammo_pistol
have been tested) do not touch the trigger.Steps to reproduce
Steps to reproduce the behavior:
In Hammer:
trigger_multiple
in a maptrigger_multiple
to have the spawnflag 8192 for Itemstrigger_multiple
to kill the activatorIn game:
item_healthkit
entity into the trigger.The output will not fire.
Expected behavior
Triggers with flag 8192 should allow pickup items (such as
item_healthkit
) to touch and fire the appropriate output.Additional context
This is not simply a matter of the trigger filter. These items do have the movetype
MOVETYPE_FLYGRAVITY
. In addition, if you set the flag for "Everything" (not including physics debris) these items will still not touch the trigger. That indicates that something is preventing the touch function from being called at all. I tried to test if it had to do with collision groups but I had no success.I have attached a very bare bones map file that demonstrates this behavior.
debug_item_trigger_maps_and_mapsrc.zip
This is necessary for Entropy : Zero 2 for the map ez2_c2_4, which uses
trigger_teleport
. In the map, there is a bug that healthkits and ammo will not teleport properly.The text was updated successfully, but these errors were encountered: