[QUESTION] Lua Differences

05/23/2017 21:54 Grim.#1
I've been messing around with a lua files a little bit and I've noticed that some server files have an alternative version(2011 edited, instead of 2009) of 116 and 117.

116 (2009)

117 (2009)

Now on the 2011 edited version of these lua files you can see that the difference is in this little bit of code

116 (2011)

117 (2011)

I'm guessing the purpose of the added if statement for the modified 116 version is for error checking, so I brushed that off. However, I can't seem to find out why they changed the values passed into the LuaDeleteMob from:

Code:
Mob:LuaDeleteMob ( 2470, 1, 0.0, 0.0)
to

Code:
Mob:LuaDeleteMob ( 2470, 0, 0.0, 0.0, 500.0)
I checked Nubness' Lua post but it doesn't give any insight into what parameter it accepts. However, it seems like it was changed in other versions of the ps_game.exe? Does the last parameter in the new code represent a radius? Wondering if anyone has any input in this.