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 Product Chat / loose game when fire a bullet into zone? is it possible.

Author
Message
gorba flamingo
16
Years of Service
User Offline
Joined: 16th Oct 2007
Location: between crazy and all out insane!
Posted: 11th Dec 2008 07:02
(if you can't program dont just post the guess "no")
im thinking of a level where you are in a civilian populated city and if you fire at a building inhabited by civilians you get in trouble, then the second time you loose. any ideas, commands? thanks (+ kill and lose? i have yet to search that.


Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 11th Dec 2008 08:19 Edited at: 11th Dec 2008 08:20
Just do a kill count on civilians and punish them for a civilian death.
That could easily be done by incrementing a global variable in a civilian destroy script.

I have never tried shooting an invisible box before, but it might help in this case.
If you had a large invisible box (or 2) surrounding the building then you could use their destroy scripts in a similar fashion as described above.
But like I said, I never tried shooting an invisible box before, so it is all theoretical.

Don't forget to visit Conjured Entertainment

TGPEG
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location: Bristol, United Kingdom
Posted: 11th Dec 2008 20:52
I suppose you could do a script where an invisible box (the one from mp2 for example) has a script that says damage=1;playerloses ... or whatever it is... I haven't done any coding in a while.

[center]
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 13th Dec 2008 18:27
...I was going to suggest a solution very much like TGPEG's.

I'd use a larger entity, such as an invisible wall entity (player might miss something as small as a box), and assign a script that will callout the end of the game, if it receives any damage...


CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 13th Dec 2008 18:31
Or add this line to the script for the civilians:



Crusader2
16
Years of Service
User Offline
Joined: 8th Aug 2008
Location: Somewhere...
Posted: 13th Dec 2008 19:46
I like CG's solution more. It seems easier.

If A=B and B=C, are people still stupid?
-Crusader2
USE PLY'S MOD!
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 13th Dec 2008 21:00
Plus it'll peeve people off to no end, imagine if you miss, hut a civilian? Instant death.


CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 13th Dec 2008 21:18
Hmm, try this then:



If they get shot twice, I hardly think anyone's a bad enough shot to do that....

Hunter Studios
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: C:\\
Posted: 13th Dec 2008 23:45
I have used CG's solution when I made a training mission and when you shot your commanding officer you would die. It works very well.

Login to post a reply

Server time is: 2024-10-11 21:29:49
Your offset time is: 2024-10-11 21:29:49