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 / Shot Damage Script for MP

Author
Message
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 16th Dec 2006 18:14
Hi.

For the past few days i've been trying to make a HUD show up in an MP map when you are shot.

So far, following butters advice, I've took some code out of his visual damage system, and pasted it in the arena games Setuplevel.FPI

He told me I would have to figure out how to make it fade away everytime I was shot. Truth is, I'm not quite sure what I'm doing

I'm also having difficulty converting my file to DDS. I want a transparent image to fill the screen every time I'm shot. The dimensions would be 1024 x 768, the size of the screen, but when I try to convert it, I'm told it's not to the power of 2. I was advised to make the image 256 x 256, but wont that only fill a small portion of the screen?



Back to the script matter. Here's what Ive got :

In the level setup stats


In the Main Game


So far have I done this correctly. If so, how should I continue?

Meh...
Swhale aka The FPS Creator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: My computer chair, no zip code sorry
Posted: 16th Dec 2006 19:32
In theory, you might establish a timer at the point of being shot, and after the timer equals X trigger hudfadeout. Great thinking...um...Butt Monkey, many FPS games nowadays DO have blood splatters and such when shot. I am sorry that im not TOO skilled in scripts and that i cant help you any further. I hope the best for you, for, I would like to integrate this into my games also!

Your signature has been erased by a mod because it's larger than 600x120
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 17th Dec 2006 13:04 Edited at: 17th Dec 2006 13:04
Thanks. Only problem is, I have no idea how to do that

Can anyone else help me?

Meh...
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 17th Dec 2006 17:10
Looking through a single player script, I foud this:



Wouldn't adding this to the setuplevel.fpi fix the problem?

Meh...
Pus In Boots
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: S.M.I.L.E. industries
Posted: 17th Dec 2006 23:24
Whether or not this helps, but DDS. converter could help converting your texture. Discreet, eh?

Would you kindly look away from the screen when you're in my presence?

visit www.gameshell.tk
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 18th Dec 2006 17:01
Yeh, I'm using DDS. convertor but as ive said, I'm having trouble with it.

Meh...
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 18th Dec 2006 17:47
Correct me if I am wrong... but isn't "Shotdammage" an entity based script? Meaning that it does not analyse the players health, but the associated entity in which the script is run from?

Although (Unless I read it wrong) it would appear that MP players ARE entities without script attachments... delemia.

Oh, and the internal hud is probally your best bet (the last script you posted)

If you fear speaking for yourself, make use the words of others while discovering your own voice.
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 18th Dec 2006 18:31
Ok, thanks. If I'm testing the game, do I need aomeone to play with me to damage me? Or can I just commit suicide?

Meh...

Login to post a reply

Server time is: 2024-11-23 07:50:21
Your offset time is: 2024-11-23 07:50:21