Page MenuHomeFeedback Tracker

Request : add m_ActualAttackType Null check in ZombieBase FightLogic
Assigned, UrgentPublic

Description

Hi,
I made some mods in relation with zombie.
One of them (PvZmoD Customisable Zombies) add the possibility for zombies to attack players on obstacle but since the 1.13 I have a Null message when they do so.
After investigating it is because the m_ActualAttackType = Null when I launch the attack
Maybe I don’t do it the right way but it was working in 1.12
I think the new vanilla ability for zombie to hit moving player is the cause.

I try to get an new ActualAttackType but I’m stuck because GetAttackGroup is protected

My side, I finaly found a way to avoid the Null error messages but it force me to override the FightLogic () and I’m not sure it will work for all possible cases.

So I was wandering if it would be possible to add Null check in FightLogic or make modifications with the same result or make GetAttackGroup non protected or give a workaround to “trigger” a zombie attack without Null message.

I join a file with the override I made, Lines Numb 40, 47, 66 and 70 have been modified.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Liven created this task.Jul 18 2021, 5:56 PM
Liven updated the task description. (Show Details)
Liven updated the task description. (Show Details)Jul 18 2021, 6:03 PM
Liven updated the task description. (Show Details)
Liven updated the task description. (Show Details)Jul 18 2021, 6:33 PM
Geez changed the task status from New to Assigned.Jul 19 2021, 1:10 PM
Liven added a comment.Sep 8 2021, 10:43 AM

This problem persists on 1.14
Any news on that?

Note that I have to override this function without a "super" to fix the Null message, the problem being that if another mod needs to override this function it will not work.

Liven added a comment.Sep 20 2021, 3:24 PM

Still no news?