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 / Vehicle hits person-help please!

Author
Message
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 29th Nov 2009 20:20


I gave the Fenix Mod TP script to a Humvee, and i want it so that when you move in front of a character, he dies. I added the above script to the "Pace" script.

What happened was, When I moved into him, he just crouched, and I got to move over him, but he clearly still alive.

Thanks in advance!

http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 29th Nov 2009 21:28
Try this i am dry trying this, so you will have to exscuse me if its wrong and also i am new to scripting...

Seems to me that you dont need "always" and your player distance is to low set it to somthing like 40+
and subhealth to 999.

Not shure if it will work but that`s how i would try!






-Massap2

Beacause massa is the master!
Staring blankly at the sun waiting for my time to come...
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 29th Nov 2009 21:44
thanks for helping, but it didn't work... I'll keep trying

http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 29th Nov 2009 22:02
Is this script for a Humve or player?

If it is for a humve (wich is a entity) i would maybe try to change to somthing like from "plrdistwithin" to somthing with a action regarding a entity, rather then the player...

Oh and i dont think the engine would notice if you are switching from a player to humve it would just se it as you are controling a entity..


-Massap2

Beacause massa is the master!
Staring blankly at the sun waiting for my time to come...
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 29th Nov 2009 22:16
Quote: "Is this script for a Humve or player?"

TP script on a humvee... so yeah, a player.
Quote: "Oh and i dont think the engine would notice if you are switching from a player to humve it would just se it as you are controling a entity.."

I don't switch in between the two, I'm just a humvee.

The humvee part works great, it's the running over part that isn't so great...

http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Nov 2009 00:50
Quote: "subhealth=-999"


Subtracting a negative is the same as adding. Use "subhealth=999".


Also, be aware of how large the humvee is. I highly doubt it is only 40 units wide.


The one and only,


DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 30th Nov 2009 23:50
Quote: "Also, be aware of how large the humvee is. I highly doubt it is only 40 units wide. "

I sized it down, thanks though.

Quote: "Subtracting a negative is the same as adding."

Yeah, I realized that when I looked at the discription.

Thanks anyway guys!

http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 3rd Dec 2009 00:08 Edited at: 3rd Dec 2009 00:11
Quote: "Subtracting a negative is the same as adding. Use "subhealth=999"."

I hacked a virtual slot machine like that once.
Nothing better than losing on a negative bet.
The program had a drop down of list of bets up to five coins, so it had no input validation on the bet.
So, changing the bets value in the memory address to a negative number got a payout on a loss.

Lesson there...always validate values.

   Conjured Entertainment

 WARNING: Intense Madness
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 3rd Dec 2009 12:41
Ha! Well played Conjured! *applause*

http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
Earthpig_jr
15
Years of Service
User Offline
Joined: 31st Mar 2009
Location:
Posted: 5th Dec 2009 00:16 Edited at: 5th Dec 2009 04:43
ok well i dont know if this will work because i need a new comp to use my fpsc but i think that there is a work around...
Ok so this is what you do is give the character this script.

Do this and the character should do his death animation.

Ok. Try it now it should work if you put this on top of all the other states of the characters main script. p.s. where are you putting this script?
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 5th Dec 2009 02:06
nice that you did that in your head, but unfortunately it doesn't work

same result as before: it just crouches

http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
Earthpig_jr
15
Years of Service
User Offline
Joined: 31st Mar 2009
Location:
Posted: 5th Dec 2009 04:44
sorry i forgot to make it plr instead of player.
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 6th Dec 2009 13:06
Quote: "plr instead of player. "


Quote: "nice that you did that in your head"



http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
Earthpig_jr
15
Years of Service
User Offline
Joined: 31st Mar 2009
Location:
Posted: 7th Dec 2009 03:05
is the character the Humvee or do you control it?
if you just control the humvee then do this substitute "plrdistwithin" with "anywithin" and it should work.
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 8th Dec 2009 03:14
Quote: " the character the Humvee or do you control it?"

Do you know Fenix Mod's Third Person script? I gave it to a Humvee, so it is the player.
Quote: "substitute "plrdistwithin" with "anywithin""

Nah, didn't work

Thanks though. We'll work something out. Maybe there's a special command in Fenix mod itself?

http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
Earthpig_jr
15
Years of Service
User Offline
Joined: 31st Mar 2009
Location:
Posted: 8th Dec 2009 04:31
maybe but i will try to keep plotting
DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 9th Dec 2009 12:41
Quote: "maybe but i will try to keep plotting "

As will I

http://www.uncaged.co.uk/pg.htm
"The hottest place in Hell is reserved for those who remain neutral in times of great moral conflict" - M.L.K.J.
Stop P&G from testing on animals.
quadseldyx
14
Years of Service
User Offline
Joined: 20th Dec 2009
Location:
Posted: 20th Dec 2009 13:09
Can anyone post a humvee script pls

Login to post a reply

Server time is: 2024-11-25 05:14:20
Your offset time is: 2024-11-25 05:14:20