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 / 3rd Person Camera Control

Author
Message
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 24th Apr 2019 21:43
I need some input and/or help on camera rotation control for a 3rd person point of view.
I've been working on this for several weeks now and have most of the script down pat ( 3rd person control
for stock characters ) but have a problem getting the camera positions right. I want to keep the character/player
centered on screen when moving/rotating the mouse around in a 360.
The video shows what I mean, when I rotate/turn my mouse around the character goes off screen at a certain point.
I have tried many combinations of camera commands, just can't get it right. I know someone has done this before and need to be pointed
in the right direction Any help on this matter would be appreciated.
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
arrojar entidad y que explote
9
Years of Service
User Offline
Joined: 3rd Jan 2015
Location:
Posted: 25th Apr 2019 03:53
Hi, try these scripts, the camera's operation works correctly. It has modifications that I made a long time ago for stealth camera management, I hope it will help you to modify your script.

Attachments

Login to view attachments
sbegley001
8
Years of Service
User Offline
Joined: 17th Jun 2016
Location: Southern Oregon, USA
Posted: 25th Apr 2019 20:36
Awesome thank you @arrojar. Will test these soon. Is there anyway to set the camera to a fixed point and change it when you change rooms, like older third person games?
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 25th Apr 2019 22:14 Edited at: 25th Apr 2019 22:25
@ arrojar entidad Thank you
Trying out now, will let you know how it goes.

arrojar entidad The scripts work good I just need to make adjustments to them. They contain a lot of commands I don't know.
Do you have or know where to get info on these commands ? Are they part of Black Ice mod ???
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 25th Apr 2019 22:59
@ncmako :- They are part of black ice mod but not officially as its not fully integrated.

ThirdPerson=X Y -- Activates third person for the entity with X units back, and Y units to the left
ThirdPersonHeight=X -- Sets the Y offset for third person (up)
ThirdPersonHeight=X -- Sets the third person camera height to X

these are the main add-ons to the source the rest you can find in the docs folder.


best s4real





Amd fx4100,6gb ram,geforce 450
seppgirty
FPSC Developer
15
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 25th Apr 2019 23:03
your video is not showing ncmako. did you take it down?
gamer, lover, filmmaker
arrojar entidad y que explote
9
Years of Service
User Offline
Joined: 3rd Jan 2015
Location:
Posted: 26th Apr 2019 02:39 Edited at: 26th Apr 2019 02:40
You're welcome ncmako. that third-person script is modified to be used in the way the video shows. With these other two scripts I attach, you can do the camera change using a trigger and naming in the ifused.


Attachments

Login to view attachments
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 26th Apr 2019 11:36
@ S$real Thank you, now I get it I see, you did add it at some point. I understand now.

@ Sepp No, it's still showing on my end ?

@ arrojar entidad Also thank you, Yes, I 'm slowing getting the commands now
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
seppgirty
FPSC Developer
15
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 26th Apr 2019 22:33
sweet 3rd person view arrojar.
ncmako.. now i can view the video on this post. that's weird. lol
gamer, lover, filmmaker
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 27th Apr 2019 00:31
@ Seppgirty
Quote: " now i can view the video "

Yeah, strange. Maybe Youtube was down for a moment But anyway, getting the 3rd person scripts down solid now.
All the basic movements are working good.


@ S4Real Thanks, commands work great. One question, I noticed the command "masterobject" Is that a Black Ice command also ?

@ arrojar entidad Going to play with your "trigger" cam scripts tonight. Will let you know how it goes
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
Kaelyss
5
Years of Service
User Offline
Joined: 20th Dec 2018
Playing: Doom II
Posted: 27th Apr 2019 03:51 Edited at: 27th Apr 2019 03:52
(I can see both videos perfectly)

It looks great !
I didn't even know it was possible to do that !
seppgirty
FPSC Developer
15
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 27th Apr 2019 19:41
looking tight ncmako. how is the camera collision when in small spaces? does it cut into the walls?
gamer, lover, filmmaker
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 27th Apr 2019 19:54
@ Kaelyss Yes, it's not only possible... but also opens up a lot of different game play styles and ideas
I've also been working on a side-scroller type game/scripts. Working great, I'll post a video soon.
S4Reals & Arrojar Entidad scripts helped a lot.

@ seppgirty
Quote: " how is the camera collision .... does it cut into the walls?"

Good question let me run some different segments, doors and obstructions...etc and post a video.
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 29th Apr 2019 14:57
@ncmako nice work on the script .

masterobject dose not seem to be in the source after checking.

best s4real
Amd fx4100,6gb ram,geforce 450
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 7th May 2019 01:46
OK, been working on the 3rd person script and I think I have it down pat maybe ?
Just a test video showing whats possible. Yes the characters animation needs improvement.. but works.
A lot of things need to be made custom for your own project, but it's all there if one puts in the effort.
I used Bandicam so it's choppy for whatever reason ??? But game play looked smooth on my end.
S4Real, camera movement and angles all worked out great, Awesome, thanks !

My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
seppgirty
FPSC Developer
15
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 7th May 2019 23:23
looks sweet buddy. good going.
gamer, lover, filmmaker
s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 7th May 2019 23:49
looking sweet

best s4real
Amd fx4100,6gb ram,geforce 450
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 8th May 2019 02:29
Awesome!

Quote: "Yes the characters animation needs improvement"

Especially the jumping. It made my legs hurt just watching him land.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 10th May 2019 22:03
@ Explosys
Quote: "It made my legs hurt just watching him land"

They are about to hurt even more unless I figure out a working script
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
seppgirty
FPSC Developer
15
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 10th May 2019 23:26
Quote: "They are about to hurt even more unless I figure out a working script "


Ha Ha Ha !!!!!!!!!! That was good!
gamer, lover, filmmaker
arrojar entidad y que explote
9
Years of Service
User Offline
Joined: 3rd Jan 2015
Location:
Posted: 14th May 2019 03:16
great job! The use of the third person is very good.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 15th May 2019 11:51

Thanks arrojar entidad . Yes it's starting to work good. Hoping to add weapons soon.
I think I also have the jumping down pat now.
@ Xplosys..... your legs wont hurt anymore Well... not as bad at least
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 15th May 2019 15:02
Awesome ninja skills, bro!
s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 15th May 2019 20:58
@ncmako nice work on the second video.

best s4real
Amd fx4100,6gb ram,geforce 450
Mriganka
10
Years of Service
User Offline
Joined: 16th Jun 2014
Location: Virtuality
Posted: 17th May 2019 16:32
Dammit man! You've done such a fine job with the scripts! This would open up so many possibilities for the types of games you could make in FPSC. Perhaps someone would come up with something similar to Silent Hill or Resident Evil. Great work!

Login to post a reply

Server time is: 2024-11-23 08:11:37
Your offset time is: 2024-11-23 08:11:37