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 / two hud questions

Author
Message
General Jackson
User Banned
Posted: 15th Feb 2009 03:06
1. is it possible through scripting to make a health system like in Call of Duty 2?
if so, i will try to script it. just tell me if its possible.

2. is it possible to make it where if you get shot from behind, a curved line pointing downwards, if get shot from the right a curved line pointing to the right, and the same for if you get shot from in font and from the left? again, i need to learn to scriot so if its possible i'll try it.
Thanks

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 15th Feb 2009 04:25
1) yes
2) you might be able to in Ply's mod but i'm not sure.

...
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Feb 2009 05:26
2) Yes, with Ply's Mod you can. This would be done with setting variables to the player's current angle and the entity's current angle, checking them against each other and displaying a HUD when necessary.

Example:

If the player is looking in the direction of 67 degrees and gets shot by an entity looking in 97 degrees (These are Y Angles, btw), then we can do some simple calculations like so to find out where the entity is from the player:

67 - 97 = -30 degrees difference


Now, keep in mind that if the entity is looking in the SAME DIRECTION as the player and were still ABLE to hit the player, then they MUST be directly behind the player.

For this, I would do the following:

Find PlayerAngle-EntityAngle (Like we did in the example above)
- If the difference is -45 to 45, then show the down arrow.
- If the difference is -45 to -135, then show the left arrow.
- If the difference is 45 to 135, then show the right arrow.
- If the difference is greater than 135 OR less than -135, then show the up arrow.


You'll run into some problems with angle wrapping and whatnot, so you may decide to use the "wrapvalue" command in Ply's Mod to accomodate for it somewhat.

Just don't expect to get off scotch-free on this one, it's going to require a bit of thinking.


The one and only,


General Jackson
User Banned
Posted: 16th Feb 2009 21:49
how much does your mod cost, ply?

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Feb 2009 05:28
http://www.plysmod.tk/

Take a look


The one and only,


General Jackson
User Banned
Posted: 18th Feb 2009 04:16
ok. i've run into a problem.

the hud does not show when the players health is below 40 like its supposed to. can someone help?

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Feb 2009 14:09
Make the HUD in state 0, then hudshow and hudunshow it in the rest of the script.


The one and only,


General Jackson
User Banned
Posted: 18th Feb 2009 22:51
ok. same problem. the doggone hud just wont show. heres the modified script. what am i doing wrong?


It is well that war is so terrible or we should grow too fond of it- Robert E Lee
General Jackson
User Banned
Posted: 19th Feb 2009 21:09
is anyone gonna read my previous post and tell me what to do?

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Crusader2
16
Years of Service
User Offline
Joined: 8th Aug 2008
Location: Somewhere...
Posted: 19th Feb 2009 22:22
You need to use the hudfont= command; this defines what the HUD will look like. What I'd do would be something like this;


Some people say that I'm crazy... And I agree.
USE PLY'S MOD!
General Jackson
User Banned
Posted: 20th Feb 2009 00:50
ok that isnt what i mean. thanks but what i mean is that, in a previous version of this script, it would show just at the wrong times. i fixed that but now it will not show at all, even when i set the conditions and use the hudshow command. thanks so much for trying to help crusader, but that isnt it. any ideas anyone?

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Feb 2009 14:41
You need to start the timer before checking if it's greater than anything. Put a "timerstart" action in your second line. That should do it.


The one and only,


General Jackson
User Banned
Posted: 20th Feb 2009 21:04
ok

It is well that war is so terrible or we should grow too fond of it- Robert E Lee

Login to post a reply

Server time is: 2024-11-24 19:18:55
Your offset time is: 2024-11-24 19:18:55