Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Help with a Alt texture script

Author
Message
Tomahawk
11
Years of Service
User Offline
Joined: 16th Dec 2012
Location: Where do you think I live?
Posted: 8th Apr 2013 21:14
So after i made my first script i decided to tackle another idea. This idea will be if the enemy was shot in the head it would display a texture of the enemy with a bloody head Etc. i have been using the shotdamagetype command and this is what i have so far

This is for the stock thug, is there anything i missed or have to do with the character to make him able to use the shotdamagetype command

Thank you for any help

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 8th Apr 2013 21:47 Edited at: 8th Apr 2013 21:47
When you use the "alttexture=x" command, you do not need to specify the full path to the texture. You have this...



... and the engine will not read that if in a build game due to where the player installs the game. Instead, you can use this...



This works the same for defining huds in scripts. You only need to specify the folder path "inside" the "files" folder, since the engine sets the game directory root as "files" by default.

Another note. Try not to use spaces. Instead of a space, use a "_" if you need to. The engine gets picky and may yield strange results when a space is involved in a file name.


There's no problem that can't be solved without applying a little scripting.
Tomahawk
11
Years of Service
User Offline
Joined: 16th Dec 2012
Location: Where do you think I live?
Posted: 8th Apr 2013 21:57
Thank you BlackFox hopefully this solves my problem.

Quote: "Try not to use spaces. Instead of a space, use a "_" if you need to. The engine gets picky and may yield strange results when a space is involved in a file name."

Do you mean in the file path?

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 8th Apr 2013 22:20
Quote: "Do you mean in the file path?"


That, and the actual file name. For example, if you had your retextures located in "entitybank\Tomahawk\Thug Retextures\", I would change it to "entitybank\Tomahawk\Thug_Retextures\". If the actual texture file name was "Thug1 Shotdamage.dds", then use the "_" to take the place of the space. It would then become "Thug1_shotdamage.dds".

The engine gets hissy with spaces or special characters in the path line or the file name.


There's no problem that can't be solved without applying a little scripting.
Tomahawk
11
Years of Service
User Offline
Joined: 16th Dec 2012
Location: Where do you think I live?
Posted: 8th Apr 2013 22:25
Thanks again BlackFox i will post soon if it worked or not.

Login to post a reply

Server time is: 2024-11-23 17:31:23
Your offset time is: 2024-11-23 17:31:23