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 / shoot at a door and then it jumps out of its frame?

Author
Message
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 27th May 2007 22:02 Edited at: 29th May 2007 14:15
Hi guys

I wanted to ask if it is possible to make a script - when you shoot at a door - it is thrown away a certain distance out of its frame - maybe a kind of force that gets performed on it...

Is such a thing possible in FPSC?

Edit: yes I finally arrived to do it...


For all my free FPSC entities!
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 28th May 2007 03:57
Maybe if you made your own entity. I do not think this can be done on the default entities even with scripts.

http://www.gamestack.org
http://onlinenotes.gamestack.org
http://onlinebookmarks.gamestack.org
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 28th May 2007 11:46 Edited at: 28th May 2007 11:50
OK, I got it working without any script
Here is what it looks like.


Note: The first door segment's health has to be set to a higher amount than 0.


For all my free FPSC entities!
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 28th May 2007 11:46 Edited at: 28th May 2007 11:48
Here is the result


And its looks like the explosion had thrown the door out of its frame


For all my free FPSC entities!
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 28th May 2007 14:46
Pigs Can Fly,

Nice work, I totally forgot you could do it like that, my bad

Nice job

http://www.gamestack.org
http://onlinenotes.gamestack.org
http://onlinebookmarks.gamestack.org
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 28th May 2007 15:50
pigs can fly,

Nice thinking and a great solution. This should play out well as a puzzle element.

Best.

I'm sorry, my answers are limited. You must ask the right question.

incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 28th May 2007 17:45
I have used that idea many times myself. It took a bit to figure it out. Good thinking. If I had seen this thread earlier I would have help you. Good to see that you are a thinker though.

Three cheers for you.

The person that now knows the most started with many questions. Patients and tolorance are the keys to the passage of knowledge. http://gamedesigntech.byethost7.com/
Slayer222
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: Wherever I feel like
Posted: 28th May 2007 19:20
Yes but what I do is make a stacic door lying on the ground to save CPU.

EOT
[img][/img]
Check it out here: http://eliteops.piczo.com/?cr=6&rfm=y
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 28th May 2007 21:43
I thought I would try your solution and had some fun doing it. Here is a link to the video, which proves that C-4 is better than WD-40 on stuck doors.

Music by G4fan.


http://www.youtube.com/watch?v=o4cU5VZY6To

Best.

I'm sorry, my answers are limited. You must ask the right question.

pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 28th May 2007 23:10 Edited at: 28th May 2007 23:28
Quote: "Yes but what I do is make a stacic door lying on the ground to save CPU."


I think that won't take much from CPU. And if I did, I'd never see the door fly out of its frame, which looks quite good.

Erm... maybe you could give a script to the 2nd door entity that makes it disappear. Or collision is deactivated, and after a certain time it sinks until it isn't seen any more and then disappears...
Probably that is possible by using shotdamage and timer, for example:


Hope that works... Please tell me if there are problems.

@ explosys
Nice video
Thanks


For all my free FPSC entities!
Zdrok
17
Years of Service
User Offline
Joined: 19th Dec 2006
Location: Pittsburgh
Posted: 28th May 2007 23:28
This would be a GREAT element for FtC's first level. Thanks, pigs can fly.

This is Mad-Man. Copy Mad-Man into your sig so he can rule the FPSC boards. How to do it? }+:+)+the message after the smiley=domination!
Toasty Fresh
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: In my office, making poly-eating models.
Posted: 11th Jun 2007 10:14
Can you make doors explosive without the barrels in front?

The good, the bad and the Toasty.
BiOjOe
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: England, UK
Posted: 19th Jun 2007 14:37
I was woundering if you could make it with the shootdooropen.fpi script.

so when you shoot it the door comes out its frame but the problem is with the physics set to explodable it done look right.

Login to post a reply

Server time is: 2024-11-23 18:19:40
Your offset time is: 2024-11-23 18:19:40