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 / Text After Death of an Enemy?

Author
Message
Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 20th Jun 2011 17:15
IS this possible?
When an enemy dies, text is shown for a short time before disappearing? It isn't working for me.
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 20th Jun 2011 23:56
What are you trying? Are you adding a hud to the enemies destroy script? If so, where in the script?

Brian.

Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 20th Jun 2011 23:59
Please. No one steal or modify this. It's for educational purposes only.



That's the code. The enemy gets stuck at the death frame and then the text dosen't show.
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 21st Jun 2011 00:03
Quote: ":state=1,alphafadeequal=0:state=2,destroy,state=4"


That line may be your problem. State 2 does not exist. Also, once you destroy the entity, does the script continue to run or does it die as well?

Brian.

Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 00:06
Modified Version.

frafra_95
14
Years of Service
User Offline
Joined: 27th Oct 2010
Location: Black Mesa Research Facility
Posted: 21st Jun 2011 00:15 Edited at: 21st Jun 2011 00:15
when the state changes, the fpgcrawtext disappears
Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 00:17
Could someone give me a corrected version then?
Please?
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 21st Jun 2011 00:21
It works for me but the text only shows for a fraction of a second. I'm sure it has to do with how you sequence it. You may need to play around with where and when the timer is called.

Brian.

Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 00:23 Edited at: 21st Jun 2011 00:24
Should I just raise the timer?

EDIT: The enemy dies also? The transitional frames are correct?
Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 00:49
Still dosen't work.
It gets stuck at a standing frame and the text never displays.
frafra_95
14
Years of Service
User Offline
Joined: 27th Oct 2010
Location: Black Mesa Research Facility
Posted: 21st Jun 2011 00:58
but are you sure that even if there are all those random conditions, at least one is true?

Quote: "the text only shows for a fraction of a second."

could it be because
Quote: "when the state changes, the fpgcrawtext disappears"
??
Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 01:03
I tried mixing the scripts, I got the same result.
frafra_95
14
Years of Service
User Offline
Joined: 27th Oct 2010
Location: Black Mesa Research Facility
Posted: 21st Jun 2011 01:03
try this:
2Beastmode4u
14
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 21st Jun 2011 01:06
That won't work... I haven't tested it but it won't. The incframe is the problem from what I see. I'm going to take it out and try it out.


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators
frafra_95
14
Years of Service
User Offline
Joined: 27th Oct 2010
Location: Black Mesa Research Facility
Posted: 21st Jun 2011 01:13
the incframe isn't the problem
Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 01:13
Thanks for the help everyone...
I still can't get it working.
2Beastmode4u
14
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 21st Jun 2011 01:56
The incframe did cause the whole death scene bug but the hiding is proving to be a difficult bug...


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 21st Jun 2011 08:12
Using HUDs may be a better way to go here.

fpgcrawtext is good if you are sure no other script is calling it. Creating individul HUDs using hudtext=, while more complicated, may be more reliable, plus you can use the hudfadeout= on hudtext.

I'll have a play on my way into work.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 21st Jun 2011 10:13
Ok, so i changed the script to use hudtext and I believe it works as you want.

I think the problem is that fpgcrawtext suffers from flickery text syndrome if not repeatedly called. So because you call fpgcrawtext once and then move to a different state, the text fickers off.

hudtext does not suffer from this illness and so stays on screen for the 5 seconds you want. I'll post the script when I get home, but I warn you, it has doubled in size

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
maho76
14
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 21st Jun 2011 13:16
you also can use a runfpi=X instead of your original script and create text with a neutral triggerzone with an etimer, i think.
Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 17:14
Thanks everyone.
Ched80, please post the script.
Also, we are talking about V1.17/V1.18 correct?

@maho76
Thanks. Never thought about that.
Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 19:22
I'm still in need of help.
I can't get it working.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 21st Jun 2011 22:31
Here you go: Enjoy!

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]

Attachments

Login to view attachments
Shadowdeath
14
Years of Service
User Offline
Joined: 31st Dec 2010
Location: NYC
Posted: 21st Jun 2011 22:41
Thanks, I'll try it out now.

Login to post a reply

Server time is: 2025-06-07 18:52:37
Your offset time is: 2025-06-07 18:52:37