Jump to content

Any way to check player ground collisions and illumination?


CantStoptheBipBop

Recommended Posts

I've been writing a draft version of a script for calculating player camo index, but the part I'm stuck on is how to tell what surface a player is standing on. As in, if you're standing on a soil texture that falls under "MTR_SOIL_B", then you'd get a camo bonus if you're wearing desert fox or a sand/greenery fatigue. afgh_common_terrainMaterial.fox2 seems to be the file that sets what player2_camouf_param.lua variable each texture/model falls under, but I haven't made any headway on calling a check for it. Additionally stuff like afgh_common_fx_mtr_def.lua, RecoilMaterialTable.lua, afgh_animal.lua, and some other files refer to material names.

 

The other thing I can't figure out is seeing if the player is illuminated by a light source. The closest thing I've figured out on my own is that you can sort of do that by having a check for the player being affected by TppDamage.ATK_FlashLight or TppDamage.ATK_FlashLightAttack at night, but that still leaves all of the other light sources unaccounted for.

Link to comment
Share on other sites

this will be a gr8 addition to my mod, oh wait, WE made the mod together, right lol. Anyway, good to see u, how come you aren't online on steam?

 

BUT, thanks to you, my mod is growing and my steam friends list is growing along with it lel.

 

Well, i hope u figure out whatever it is you're uh.....doing.

 

bye and i have more modding questions.

 

Later, m9!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...