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 / eyes on wall follows plr

Author
Message
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 25th Mar 2007 00:50
I stumbled upon this by accident and thought it possible to do something funky like have eyes following the player. The script is extremely easy. Just need pretty much the following:




You wouldn't even need the "within dist" condition.

However, it is finding or creating a suitable image that then is the challenge. I was not sure where to put this -- either in "chat," "script," or "image?"

I used FPSMagic to make a sign. But prior to that the image needs to be small and surrounded by a large transparent area. I had an image of about 290 x 290 pixels placed on a canvas of 2048 x 2048 pixels; and it still needs tweaking. I'm sorry but I won't be making a video of it. Isn't worth my time, however, I do have three images (yes Fred they are JPG this time -- and BTW Fred, move this where it seems best )

This first image attached is when player is on the left.

The sign entity needs to be dynamic and not static. You also need to assign the "rotate" script to the main AI and probably need to make the sign immobile so it doesn't jump off the wall. I've never tested that possibility but I do know dynamic entities have a tendancy to move or fall because of the physics. Anyway, once you have that then you have kind of an eerie situation. The room, of course, needs to be darkened.

As opposed to Highlander.

Attachments

Login to view attachments
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 25th Mar 2007 00:51
This view is from the front.

As opposed to Highlander.

Attachments

Login to view attachments
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 25th Mar 2007 00:51
This view is from the right.

As opposed to Highlander.

Attachments

Login to view attachments
filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 25th Mar 2007 02:59
check rolfy's test level. I think was called 'killer clown' or something. He has done this (sorry to say) a 100 times better effect than this.

-- game dev is fun...but taking up too much time --
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 25th Mar 2007 06:04 Edited at: 25th Mar 2007 06:14
No need to be sorry. I just noticed by accident one could do something like this and I couldn't find script using the search. That's kind of the problem with only being able to search the topic/subject/title of the thread. I knew that if there was something done already it probably would be better. And if rolfy did it then it would definately be better.

If I can find the thread I will post a link to it.

=============================
added:

Here is a link to killer clown. It is a demo in the showcase forum and therefore there is no script available or explanation of how he did it.

Killer Clown

I was not trying to come up with an actual completed script. This was purely meant for those who might be interested and then they can go from there. There was no way I was going to spend a ton of time coming up with something fancy and cool. Hopefully this might be a simple nudge.

Yea, I know this is not very good at all. In fact I would use the gesture of putting my finger down my throat.

As opposed to Highlander.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 26th Mar 2007 03:06
rolfy used decals, which can by default be set to always face the player, giving that "always looking at you" effect. No script is necessary.

Best.

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

Login to post a reply

Server time is: 2024-11-23 13:04:13
Your offset time is: 2024-11-23 13:04:13