Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] hookzones bug #108

Closed
Nyano1337 opened this issue May 8, 2020 · 3 comments · Fixed by #283
Closed

[BUG] hookzones bug #108

Nyano1337 opened this issue May 8, 2020 · 3 comments · Fixed by #283
Labels
enhancement New feature or request help wanted Extra attention is needed template-unused Issue template not properly filled out or removed

Comments

@Nyano1337
Copy link
Contributor

every hookzone couldn't activate "filter_activator_name"
i mean,while i'm touching a trigger with targetname "xxx",hookzone couldn't activate it,which means that i couldn't get teleport or push(eg:surf_rands all stages)

@Nyano1337 Nyano1337 added the bug Something isn't working label May 8, 2020
@dPexxIAM
Copy link
Contributor

dPexxIAM commented May 8, 2020

change the zones targetname to the same targetname applied to the trigger, EG:

"model" "*148"
"wait" "1"
"targetname" "b1_start"
"StartDisabled" "0"
"spawnflags" "1"
"origin" "5008 0 4688"
"classname" "trigger_multiple"
"hammerid" "137781"
"OnStartTouch" "!activator�AddOutput�targetname b1�0�-1"

You would change the zones targetname to "b1"

use stripper to run a dump on the map to find these values.

Changing the targetname can be done via edit zones option in !zones menu, else via your databases ck_zones table

The same issue is present with filters, the activator is not applied when player fails/respawns, to stop this from happening, you can change the zones targetname to something other than "player" it can be named to any targetname you wish.

This is more of a workaround, would not consider it a fix by any means.

@sneak-it
Copy link
Member

sneak-it commented May 9, 2020

I'm going to re-open and re-label this since it's far from ideal, while there is a workaround available, I believe our ideal approach should be copying the relevant trigger kv's when hooking & recreating the trigger.

@sneak-it sneak-it reopened this May 9, 2020
@sneak-it sneak-it added enhancement New feature or request help wanted Extra attention is needed template-unused Issue template not properly filled out or removed and removed bug Something isn't working labels May 9, 2020
@Nyano1337
Copy link
Contributor Author

someone mentioned it again, and i find it unneccessary to set player's targetname when they start to touch ck_zones,while ck_zones' targetname is neccessary

i couldn't tell more about it, but delete some code implemented badly should be ok.

i haven't test it :d

https://github.com/surftimer/Surftimer-Official/blob/master/addons/sourcemod/scripting/surftimer/surfzones.sp#L225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed template-unused Issue template not properly filled out or removed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants