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 / Health Decrease if shot hostage

Author
Message
Yearcut
User Banned
Posted: 27th Nov 2009 07:44
Hi all,

I do know how to make health decrease if player shoot hostage using this line of code: shotdamage=1:plraddhealth=-999

But it only works if the entity's health is greater than the damage of player's weapon. In other words, it only works in the entity which dies after 2+ shots. But is it possible to make health of player decrease if shot the hostage with hostage's health only 1.

Please let me know if you can't understand what i am saying.

-YearCut

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 27th Nov 2009 08:12
Hey yearcut that script that I made for you, you just need to add to it after the don'tshoot part, but I will post it for you and others. Hopes this helps. Oh and just in case you want you ca change the plr health to whatever you want I just had it kill the plr for shooting a hostage.


Yearcut
User Banned
Posted: 27th Nov 2009 09:21
hey starmind 001... It don't work if the hostage's health is 1. Try it yourself, it won't work. I knew how to do this starmind 001 but I don't mean it, I meant how to decrease player's health if player shoot hostage which have only "1" health that means 1 shot kill.

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
Hador
User Banned
Posted: 27th Nov 2009 13:30
try 2 health and then go up by one.

DAGGERSHATTER GAMES

Yearcut
User Banned
Posted: 27th Nov 2009 13:39
*solved*

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 27th Nov 2009 17:35
:shotdamage=1:plrsubhealth=20

add me on skype- isaacpreston. WWC percentage complete: 60%
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Nov 2009 02:15
Why not kill the player in the hostage's destroy script? Wouldn't that save a lot of hassle here?


The one and only,


Yearcut
User Banned
Posted: 28th Nov 2009 06:54
Quote: "Why not kill the player in the hostage's destroy script? Wouldn't that save a lot of hassle here? "


I may sound stupid this time but HOW?

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 28th Nov 2009 10:49
:state=0:plrsubhealth=999

Save it as hostagekill.fpi and set it as the destroy script for the hostage. If plrsubhealth doesn't work, use plraddhealth=-999. Good luck getting this to work.

FREE FPSC Billboard Pack: http://forum.thegamecreators.com/?m=forum_view&t=160850&b=24
Migration Discussion Thread: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Yearcut
User Banned
Posted: 30th Nov 2009 06:01
Quote: "Subject: Health Decrease if shot hostage"

Is there a way to Life Decrease if shot hostage?

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999

Login to post a reply

Server time is: 2024-11-25 05:49:54
Your offset time is: 2024-11-25 05:49:54