Had a question from Larz, whom I am working with on STV demo playback capabilities. It goes like this:
So there are three spectator modes (1st person, 3rd person, 3rd person free-flying). The keyboard command to cycle them is the space-bar, the console command is "spec_mode". However, this simply cycles them in order (all demos start in the 3rd mode, so I tell the demo to cycle once more to be in first person). What I'm looking for is some sort of console command that would allow me to specify which exact spec_mode to switch to. I've seen the console code "cl_spec_mode" = "4", but I really have no clue what this command does (maybe this is it?).
If I were able to specify, it would open up many new doors into how much we can do with this. For example, if I could tell it "cl_spec_mode 1; spec_player "mix^ TLR"" at tick 12999, then it would automatically give me the exact camera I want at the specific time. AND you would be able to do some of your own camera work. Lets say at 12000 you wanted to check on what the enemy engineer is doing (something I may have forgotten to do). You could switch over to the engie, or you could go into 3rd person camera to explain the map, or you could do whatever you felt like on the fly. Then, 999 ticks later, the demo would pull you away from whatever you were doing to the first person TLR cam.
--------
TLDR: Is there a console command that is the functional equivalent of the spacebar for spectating, or one that can specify 1st or 3rd person instantly?
Had a question from Larz, whom I am working with on STV demo playback capabilities. It goes like this:
So there are three spectator modes (1st person, 3rd person, 3rd person free-flying). The keyboard command to cycle them is the space-bar, the console command is "spec_mode". However, this simply cycles them in order (all demos start in the 3rd mode, so I tell the demo to cycle once more to be in first person). What I'm looking for is some sort of console command that would allow me to specify which exact spec_mode to switch to. I've seen the console code "cl_spec_mode" = "4", but I really have no clue what this command does (maybe this is it?).
If I were able to specify, it would open up many new doors into how much we can do with this. For example, if I could tell it "cl_spec_mode 1; spec_player "mix^ TLR"" at tick 12999, then it would automatically give me the exact camera I want at the specific time. AND you would be able to do some of your own camera work. Lets say at 12000 you wanted to check on what the enemy engineer is doing (something I may have forgotten to do). You could switch over to the engie, or you could go into 3rd person camera to explain the map, or you could do whatever you felt like on the fly. Then, 999 ticks later, the demo would pull you away from whatever you were doing to the first person TLR cam.
--------
TLDR: Is there a console command that is the functional equivalent of the spacebar for spectating, or one that can specify 1st or 3rd person instantly?
I figured out the command. The cvar is "spec_mode" and values 4, 5, and 6 set to 1st person, 3rd person, and free fly respectively (ie. "spec_mode 4" switches to 1st person on current target).
-L
I figured out the command. The cvar is "spec_mode" and values 4, 5, and 6 set to 1st person, 3rd person, and free fly respectively (ie. "spec_mode 4" switches to 1st person on current target).
-L