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 / Killer Slime (not trigger zone)

Author
Message
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 27th Sep 2007 20:52 Edited at: 28th Sep 2007 01:54
Have you ever got frustrated that a decal can't kill you (in this case the slime decal) and you have to use a trigger zone?

Ever wanted to create a puzzle in where you have to use boxes to get over the slime otherwise it reduces your health if you step on it?

You can't do that with a trigger zone (as you'll always be 'in' it even if you're on boxes).

Well, here's the answer! This script will only reduce a players health if he's actually standing on the slime! Copy it to notepad and save it as "SlimeKiller.fpi" (or whatever you want) and place it in your scriptbank. In the 'Main' of the decal, place this script and you've got killer slime!



"he is coming!..." - WIP in 'Showcase'
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 27th Sep 2007 21:05
Cool idea
Thanks for sharing!


The Swarm of flying pigs is coming...
Killer&Slaughter Machines Pack too!
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 27th Sep 2007 21:19
Good one.... Dude.

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

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 27th Sep 2007 22:10 Edited at: 28th Sep 2007 01:55
Simple but effective!

Note:
1/. Don't replace "decalflat.fpi" with this (those who've read my first unedited post will understand) as that is the default script for any flat decal, even water!

2/. There seems to be 'channels' in the slime that the script effects, meaning even though the player is on the slime, there will be little 'paths' that the player can walk along if he can find them without getting hurt. This has nothing to do with my script but rather something to do with the decal itself, you may have to put more decals down to cover up these paths.

"he is coming!..." - WIP in 'Showcase'
Nomad Soul
Moderator
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location: United Kingdom
Posted: 28th Sep 2007 00:04
Thanks

This is a nice script. Simple but very effective.

Don't forget that trigger zones can be moved up and down using 'page up' and 'page down' in the same way as lights so they can be positioned for collision to some extent but this is a nice solution.
Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 28th Sep 2007 01:50
Thanks for the script, yet another very handy script to have at hand.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 28th Sep 2007 01:55
...cool!


Own It, Or Get Owned...
Ice Cube
17
Years of Service
User Offline
Joined: 21st Apr 2007
Location: United Kingdom
Posted: 28th Sep 2007 03:15
Quote: "Ever wanted to create a puzzle in where you have to use boxes... "

That's part from one of my future projects indeed

Thanks for the great script!

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Oct 2007 01:54
Quote: "Don't forget that trigger zones can be moved up and down using 'page up' and 'page down' in the same way as lights so they can be positioned for collision to some extent but this is a nice solution."


But if you've got one level above another and you move a triggerzone down, it will intersect with the level below and the play could unknowingly be caught in it.

"he is coming!..." - WIP in 'Showcase'

Login to post a reply

Server time is: 2024-11-23 22:46:24
Your offset time is: 2024-11-23 22:46:24