Frictional Games Forum (read-only)
Custom player damage visual feedback? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Custom player damage visual feedback? (/thread-17849.html)



Custom player damage visual feedback? - TheGreatCthulhu - 08-19-2012

In the script functions wiki, it says that GivePlayerDamage() accepts "BloodSplat", "Claws" or "Slash" as the second argument - is it possible to create additional damage effects, or are these hard coded into Amnesia?
I was looking through the files, and found the damage effect textures, but couldn't find any other file that defines the effects themselves.
Tnx.


RE: Custom player damage visual feedback? - Your Computer - 08-19-2012

It's possible that it follows the following file name syntax: "damage_"+strtolower(asType)+n (assume an internal strtolower function exists).


RE: Custom player damage visual feedback? - TheGreatCthulhu - 08-19-2012

Thank you again. That occurred to me too, but it doesn't work. The game also doesn't look for a custom story-specific version of the files, at least not by default. That's why I was hoping there was some kind of a XML file (or some other format) that defines the effects.


RE: Custom player damage visual feedback? - Your Computer - 08-20-2012

I did more research on it, and it would seem that the relative path to the file is hard coded into the Amnesia executable along with the damage types. So the only way to have your own is by overwriting the original files.