What's the purpose of this?
Maybe you want to study how A_Chase works in GZDoom but without having to look at up the original source code? (here: https://github.com/coelckers/gzdoom/blob/eab32890435b4eb2cb04e7ce16ffb67c8e320a3a/src/playsim/p_enemy.cpp#L2192)
Or maybe you want to create your own A_Chase on top of the original one?
I have seen people wanting to port A_Chase to ZScript so I hope this will atleast help them
I kept original comments from the source code.
Github (for viewing code): https://github.com/Kizoky/A_ChaseZS/blob/main/zscript.txt