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 / Sic1ne & Storyteller's PushOver script

Author
Message
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 2nd Mar 2011 16:38 Edited at: 6th Mar 2011 01:53
Sic1ne opened a thread with a question
Quote: "in the game fear 2 you can push over a vending machine for cover, i was wondering if there is any scripts out there or if it is possible to walk up to an object and hit enter to push it over?"
and he kind of allready had the answer: A script where the player presses "Enter".

I apologize for not taking that question serious enough. In fact, once I started thinking about it (it took sic1ne several posts to make me use my brain), I realized , that this was doable - just as he allready suspected it would.

Everything works now and has been tested ingame with 1.18 beta 8.

Here is the script PushOverTable, which is nothing more than a destroyandactivate script
EDIT: The original script had a flaw, that SethBlack fixed with the last state=2 line in the script. Please use the new one!

(not sure if the displayed text is grammatically correct)


To pull it off, you actually need 2 entities with very specific settings. This picture explains it all (sorry for the size, but photobucket kind of scales everything to a standard size)


You can download the tiny demo here, to push the table over yourself - the download also includes the above pic in a larger version to print it out: http://www.mediafire.com/?wmbdbggxpu97om9

And here is the youtube vid:


In case you find my grammar and spelling weird ---> native German speaker ^^
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 2nd Mar 2011 16:52 Edited at: 3rd Mar 2011 16:52
N/A

- BlackFox

The function of good software is to make the complex appear to be simple.
Turtle Productions
15
Years of Service
User Offline
Joined: 22nd Jan 2009
Location: Finland
Posted: 2nd Mar 2011 19:23
Cool!
Sting
13
Years of Service
User Offline
Joined: 18th Jan 2011
Location:
Posted: 2nd Mar 2011 20:03
GJ Storyteller! Suprising what people can accomplish with a spray of oil to the brain! I'll keep this one in mind!
sic1ne
14
Years of Service
User Offline
Joined: 23rd Sep 2010
Location:
Posted: 2nd Mar 2011 20:30
you did an awsome job storyteller we broght a cool new ideah and cover system to fps creator thanks for teamin up with me! you did an awsome !!!!!!

[imghttp://img97.imageshack.us/img97/6489/sic1ne.jpg[/img]
[/img]
defiler
15
Years of Service
User Offline
Joined: 4th Apr 2009
Location: Canada
Posted: 3rd Mar 2011 05:57
Wow... Simple yet useful. Thanks you guys!

Current Project: Lost Contact: Chapter 1
Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 3rd Mar 2011 06:21
Nice work storyteller. I did something similar to this to do a moving bookcase in my horror compo entry...

A man will one day wear a tophat in glasgow on a sunny day juggeling grapes while humming the jurrasic park theme tune.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 3rd Mar 2011 16:36 Edited at: 3rd Mar 2011 17:24
...nice effect.

Adding this line near the end will do much to improve the functionality, and
dismiss the HUD text, should the player retreat:



Currently, the script continously battles to display the HUD text, once it reaches
state 2.

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 6th Mar 2011 01:49 Edited at: 6th Mar 2011 01:52
You are right @SethBlack. I didn't realize that text stays, if the player decides not to push-over the table

I edited the OP and credited you for the fix. Thank you!

In case you find my grammar and spelling weird ---> native German speaker ^^
General Jackson
User Banned
Posted: 6th Mar 2011 03:00
That's pretty neat! Good Job!
What would be even better is if an enemy could push over a table to use it for cover.
I might just work on that later tonight.
ByNow
13
Years of Service
User Offline
Joined: 6th Mar 2011
Location:
Posted: 6th Mar 2011 21:24
Very interesting...Thx you

Login to post a reply

Server time is: 2024-11-24 11:39:59
Your offset time is: 2024-11-24 11:39:59