Skip to content

Primal ordeal / Hazard System #3549

@InVoidEcho

Description

@InVoidEcho

Priority

Medium

Area

  • Datapack
  • Source
  • Map
  • Other

What happened?

Hazard system on Gnomeprona dont work as indid.
I tried many combinations of Hazard settings in Config.lua but only these work:

toogleHazardSystem = true
hazardPodsTimeToDamage = 2000
hazardPodsTimeToSpawn = 4000
hazardPodsDamage = 5

During tests and was able to trigger pod and patriarch spawn by removing "or not monster:hazard()"
data-otservbr-global\scripts\systems\hazard_primal.lua Line:97
but this only helps with pointing where problem is.

Image

So i assume script don't add "monster:hazard()" / hazard "tag" to monster and without it system does't work.

What i tried and what more i found douring my tests:

Zone system should work fine I was able to force add hazard levels to my char by changing
function event.afterEnter(zone, creature)
then
function event.afterLeave(zone, creature)
and checking
/zones lsit --> respond: hazard.gnomprona-gardens
/zones countMonsters, hazard.gnomprona-gardens --> Zone hazard.gnomprona-gardens monsters: 734.

Douring boss fight with "The Primal Menace" monsters spawned by script "a Primal beasts pack" are not normal monsters and they work fine (reduced dmg, dodge, pod after death, plunder after death ect. i'am not sure abaut crit)
script is in the_primal_menace.lua

Finally, it seems to me that the problem may be with:
data\libs\systems\hazard.lua Line: 186-209

Image

But i'm not sure about that just trying my best ;d

Tested on:
relase 3.2 - Windows
feat: protocol 14.05 - Windows
feat: protocol 14.12 - Windows & Ubuntu 24.04

I'm not planning fixing it because i don't know how :c what i posted is my limit and i hope someone can take it over :)
GL!

What OS are you seeing the problem on?

Windows

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: MediumThis issue may be impactful and needs some attention.StaleNo activityStatus: Pending TestThis PR or Issue requires more testingType: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions