static camera activable by impulse
static camera activable by impulse
Hello
! I would like to know if someone knows how create a static camera activable by an impulse. Bony that the player activates it and deactivates it from any place of the map to see a specific point on the map. That this can seem easy, but I have tried to suppose it in my head of noob and it is to me quite difficult: can anybody give me any sugestion or some example? from already, thank you very much 
hi, I am nahuel, I love quake and qc.
-
siska.robert
- Posts: 58
- Joined: Wed Feb 17, 2010 7:51 pm
- Location: Czech Republic
- Contact:
Re: static camera activable by impulse
custents does have remote cameras.
http://wartrench.telefragged.com/custents.html
Search for func_remote_cam()
Basicaly, you just need to remember player's coordinates and angles, teleport him on camera's location (hide gun etc...) and then load remembered values after another impulse is raised...
The remote cam from custents (actually from x-men TC...) can do much more cool stuff though. Like chaining multiple cameras, moving/tracking cameras and such.
http://wartrench.telefragged.com/custents.html
Search for func_remote_cam()
Basicaly, you just need to remember player's coordinates and angles, teleport him on camera's location (hide gun etc...) and then load remembered values after another impulse is raised...
The remote cam from custents (actually from x-men TC...) can do much more cool stuff though. Like chaining multiple cameras, moving/tracking cameras and such.
Re: static camera activable by impulse
thanks siska robert! the code from custents seem´s too complex. I do not need an advanced camera. I only need a simple static camera. Do you know how can i remember the player´s cordinates? I think in something similar to the "info_intermission" but switcheable...siska.robert wrote:custents does have remote cameras.
http://wartrench.telefragged.com/custents.html
Search for func_remote_cam()
Basicaly, you just need to remember player's coordinates and angles, teleport him on camera's location (hide gun etc...) and then load remembered values after another impulse is raised...
The remote cam from custents (actually from x-men TC...) can do much more cool stuff though. Like chaining multiple cameras, moving/tracking cameras and such.
hi, I am nahuel, I love quake and qc.
-
siska.robert
- Posts: 58
- Joined: Wed Feb 17, 2010 7:51 pm
- Location: Czech Republic
- Contact:
Re: static camera activable by impulse
You can just define new variables in defs.qc (like .vector cam_org; and .vector cam_ang;) to "remember" them. But that is the smallest problem...
The bigger problems are
1) how to find out, you're standing in trigger, so the impulse should work,
2) when camera faces the spot from which it was activated, you need to create some dummy entity that stands for player (his model/origin/angles).
etc...
Ask, if anything. I'm kinda interested in this for my own mod :)
The bigger problems are
1) how to find out, you're standing in trigger, so the impulse should work,
2) when camera faces the spot from which it was activated, you need to create some dummy entity that stands for player (his model/origin/angles).
etc...
Ask, if anything. I'm kinda interested in this for my own mod :)
-
Blackstar1000
- Posts: 52
- Joined: Mon Sep 13, 2010 5:16 pm
-
frag.machine
- Posts: 2126
- Joined: Sat Nov 25, 2006 1:49 pm
-
Blackstar1000
- Posts: 52
- Joined: Mon Sep 13, 2010 5:16 pm
-
Dr. Shadowborg
- InsideQC Staff
- Posts: 1120
- Joined: Sat Oct 16, 2004 3:34 pm
-
Blackstar1000
- Posts: 52
- Joined: Mon Sep 13, 2010 5:16 pm