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 / Could use some fairly simple scripting help here,please.

Author
Message
Zay
14
Years of Service
User Offline
Joined: 2nd Dec 2009
Location: sLOVEina
Posted: 4th May 2010 20:32
I'll be honest I don't know much about scripting but I'm trying.
I asking if anyone would take their time and help with making a script out of these two scripts.
health script:


Weapon pickup with button F script:


What I would like is a health pickup script,that you have to press the button F to pick it up when your near and a the hud use.dds tells you to press F (I already have the hud).

I think thats fairly simple but like I said,I don't know much about scripting.

Thanks in advice!
bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 4th May 2010 20:51
Weapon pickup script:
First you'll need to find the scancodekeypressed value for ''f'', then change ''plrsound'' to the health pickup one. If your using Fenix mod just put the 'runfpi=health.fpi' action after the plrtake action.
If not, put 'plraddhealth=50' after player take.

Make this your health pickups main script. Not tested.

Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 5th May 2010 02:54 Edited at: 5th May 2010 02:56
Quote: "First you'll need to find the scancodekeypressed value for ''f''"


...Which is 33.

Here's what you need:

EDIT: Huh, you used to be able to use bold in code. Or was it quotes? Eh, comments have a /// on either side now.



bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 5th May 2010 18:59
How do you find the values for keys? Your sig hurts my eyes, Shadowtroid.

Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 5th May 2010 22:42 Edited at: 6th May 2010 00:21
Quote: "How do you find the values for keys?"


It's in the manual. It's also attached to this post.

Quote: "Your sig hurts my eyes, Shadowtroid."


Why does everyone say that? I can read it fine!

Attachments

Login to view attachments
Pandagamesorg
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location: check your moms room :D
Posted: 6th May 2010 01:04 Edited at: 7th May 2010 06:07
Also download this and put it in files/gamecore/huds/
Or you can but your hud, must be a DDS file, in the same folder with the name Healthuse

Attachments

Login to view attachments
Zay
14
Years of Service
User Offline
Joined: 2nd Dec 2009
Location: sLOVEina
Posted: 6th May 2010 21:20 Edited at: 6th May 2010 21:35
Hmmm,Pandagamesorg your script didn't work.,you can pick it up but it doesn't restore your healthBut thanks anyway.
Pandagamesorg
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location: check your moms room :D
Posted: 6th May 2010 22:49 Edited at: 7th May 2010 06:08
Sorry here you go.



P.S.

Spoiler Below

Login to post a reply

Server time is: 2024-11-25 00:40:45
Your offset time is: 2024-11-25 00:40:45