Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom player damage visual feedback?
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#1
Brick  Custom player damage visual feedback?

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.
08-19-2012, 06:36 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Custom player damage visual feedback?

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

Tutorials: From Noob to Pro
08-19-2012, 08:46 PM
Website Find
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#3
RE: Custom player damage visual feedback?

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.
08-19-2012, 10:42 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Custom player damage visual feedback?

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.

Tutorials: From Noob to Pro
08-20-2012, 12:28 AM
Website Find




Users browsing this thread: 1 Guest(s)