FreeSlave / halflife-featureful

Half-Life SDK for making mods upon it
https://discord.gg/A7ZErQAjfa
Other
25 stars 5 forks source link

multi_manager doesn't recognize `#on` and `#off` states #9

Closed mfaizsyahmi closed 1 month ago

mfaizsyahmi commented 1 month ago

As per documentation, multi_manager is said to support all of #0, #1, #off, and #on to set the trigger state of the targets.

In my case, I want to use exclusively #on and #off, and avoid #0 and #1 to not be ambiguous with normal vanilla usage.

But the multi_manager doesn't recognize these values, and just send a trigger state as usual.

Attached is a demonstration map of the issue. featureful_mm_test.zip

entity excerpt:

{
"classname" "multi_manager"
"targetname" "test_mm"
"sprite1#off" "0"
"sprite2#on" "0"
"origin" "64 0 24"
}

console excerpt:

Firing: (test_mm)
Found: multi_manager, firing (test_mm, USE_TOGGLE, called by 'func_button', activated by 'player')
Firing: (sprite2)
Found: env_sprite, firing (sprite2, USE_TOGGLE, called by 'multi_manager', activated by 'player')
Firing: (sprite1)
Found: env_sprite, firing (sprite1, USE_TOGGLE, called by 'multi_manager', activated by 'player')
mfaizsyahmi commented 1 month ago

oh whoops, the suffix is supposed to be in the VALUE, huh. my bad.

FreeSlave commented 1 month ago

It's supposed to be in delay value, like it's made in Sven Co-op, yep. Putting the suffix in the target name would mess with editor recognition of the entity connections (not relevant for multi_manager though as it relies on keys, but it's relevant for Featureful-specific multi_trigger which is equivavelnt to multi_manager with a different interface).