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 / Show hud if enemy dies

Author
Message
Yearcut
User Banned
Posted: 23rd Nov 2009 14:53 Edited at: 23rd Nov 2009 14:55
Hi,

Here is a script i coded


It is not working, can someone help?
It is supposed to show a hud named "dontshoot" if the entity is shot. I put this line

in top of coward.fpi AI, the character does everything but don't show the hud if i shoot him. What am i doing wrong? It doesn't show the hud.

-YearCut

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
Bootlicker
15
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 23rd Nov 2009 18:45
i'm not a scripter at all

any spricts that i use i copy of other people and i dont understand the language

i would not use a dds file as the hud message that you want to display, instead use a targa (tga) file. You can save images as these in photoshop and similar programs.
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 24th Nov 2009 03:03
Try this.

Attachments

Login to view attachments
Yearcut
User Banned
Posted: 24th Nov 2009 08:12 Edited at: 24th Nov 2009 08:14
Quote: "i would not use a dds file as the hud message that you want to display, instead use a targa (tga) file. You can save images as these in photoshop and similar programs."


No, people prefer to use .dds file for hud. And FPSC supports it. There is nothing to do with the file format.

Quote: "starmind 001 Try this."


It is not doing what it is supposed to do. It shows the hud anytime even if i never shot him.



_)_____(_
Any one experienced in scripting can please try to help me?

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 24th Nov 2009 14:48
In state 11 just add " hudunshow=dontshoot " and it will disappear

ace93
15
Years of Service
User Offline
Joined: 22nd Feb 2009
Location:
Posted: 24th Nov 2009 19:40
does it work now?
if yes would you post the script for the comunity?
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 25th Nov 2009 00:43
Ok this script does work! I tested it for the last 15mins and each person I shot displayed " Don't Shoot! " on the screen. This script does not need a hud image, the script will create it for you. If you feel the need to make or already have the hud that you want to use then simpily delete " hudsize=100,hudtext= Don't Shoot! " to just " hudimagefine=gamecore\huds\yourhudhere.dds "

Quote: "Any one experienced in scripting can please try to help me?
"

I am helping it is just I wasn't paying attention to what I was doing. Enjoy!

Attachments

Login to view attachments
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 25th Nov 2009 00:55
Very nice script. Will come in handy.

Cheers

Mike
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 26th Nov 2009 03:27
Yearcut you have not said if this has helped you or not.

Yearcut
User Banned
Posted: 26th Nov 2009 08:13
@starmind 001 sorry i was busy. It helped me ALOT!! A thousand thanks to you! and thanks for sharing.

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999

Login to post a reply

Server time is: 2024-11-25 05:30:35
Your offset time is: 2024-11-25 05:30:35