how to superload playerFOV - adding telepathy similar talent
Posted: Thu Nov 07, 2013 7:25 pm
Hi,
I wanted to superload the playerFOV function for a talent similar to the Preternatural Senses talent.
If I want to do it by the book i have to add my code at the end or the beginning of the function.
The beginning its not a good place because of the cleanFOV routine which would erase all my changes.
At the end, there is a different problem. Tiles I lite by means of telepathy or similar effects are only lit with a factor 0.6 (normal lit tiles have a factor of 1). the result is, all actors in my FOV are lit at a lite factor 0.6, even those I can see without telepathy.
I can make a workaround, by fully lighting all tiles i see by means of telepathy. This is not a "clean" way of doing this.
Do you guys (or girls... maybe) know a better way of doing this? I haven't included any code samples as I'm doing all the coding on a different computer but i hope you know what my problem is about.
Maybe a hook for adding FOV effects could be implemented?
Or just a better way of doing what i want to do (adding a telepathy talent).
Cheers:)
I wanted to superload the playerFOV function for a talent similar to the Preternatural Senses talent.
If I want to do it by the book i have to add my code at the end or the beginning of the function.
The beginning its not a good place because of the cleanFOV routine which would erase all my changes.
At the end, there is a different problem. Tiles I lite by means of telepathy or similar effects are only lit with a factor 0.6 (normal lit tiles have a factor of 1). the result is, all actors in my FOV are lit at a lite factor 0.6, even those I can see without telepathy.
I can make a workaround, by fully lighting all tiles i see by means of telepathy. This is not a "clean" way of doing this.
Do you guys (or girls... maybe) know a better way of doing this? I haven't included any code samples as I'm doing all the coding on a different computer but i hope you know what my problem is about.
Maybe a hook for adding FOV effects could be implemented?
Or just a better way of doing what i want to do (adding a telepathy talent).
Cheers:)