Forum

Freeze!

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Freeze!

Postby behind_you » Thu Mar 03, 2011 10:45 am

messing around with sv_maxspeed gave me an idea. My mod to be is called Indignation and its hugely inspired by halflife and turok. Im making is continuous play just like halflife but i also want to include cutscenes. So im making a cvar that causes little black bars to appear on the top and bottom of the screen for the cinematic effect. Im also trying to temporarily disable all controls except for looking around. By making sv_maxspeed 0, the player cant move but im sure there's a way to disable certain controls directly. Any help?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby leileilol » Thu Mar 03, 2011 11:13 am

sure. movetype_toss the player lol
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby behind_you » Thu Mar 03, 2011 12:22 pm

hilarious
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby Spike » Thu Mar 03, 2011 12:39 pm

turning the player into a tosser will stop them from having control over their movements, but they will suffer from gravity (like bounceless gibs)...

alternatively, use movetype_whateverthehellyouwantasitdoesntmatter and reset their origin in PlayerPostThink. Also clear out .impulse and .button* in PlayerPreThink or just ignore the values inside qc.
You can set their new origin to match the origin of some moving camera entity if you want.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Freeze!

Postby Baker » Thu Mar 03, 2011 3:13 pm

behind_you wrote:So im making a cvar that causes little black bars to appear on the top and bottom of the screen for the cinematic effect.


The el-cheapo way would be to play a demo for the cutscene and set viewsize to 90 and then find the Quake tiling texture and replace it with a solid black texture.

[Note: I've never thought of seeing what viewsize does on a PSP and if it even works.]
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby behind_you » Mon Apr 25, 2011 8:20 am

thanks guys for your help, but i was thinking more along the lines of how the pause menu does it. any suggestions?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest