Forum

Change player size?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Postby Mexicouger » Wed Feb 23, 2011 1:33 am

What's so Ironic about it? I think I am a decent QC coder.
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Postby leileilol » Wed Feb 23, 2011 1:49 am

i am decenter, and you're not a pro

i'd move projectile/trace origin offsets to just self.view_ofs_z. HL does that

is it me, or is the SNR getting worse around here?
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby GiffE » Wed Feb 23, 2011 3:45 pm

leileilol wrote:i am decenter, and you're not a pro

i'd move projectile/trace origin offsets to just self.view_ofs_z. HL does that

is it me, or is the SNR getting worse around here?


Aha! But you are not decentest?! :D
What is SNR?
GiffE
 
Posts: 170
Joined: Sun Oct 08, 2006 3:39 pm
Location: USA, CT

Postby Karall » Wed Feb 23, 2011 3:49 pm

Okay guys chill out! :D I do know its a piece of cake. I already do know that its a vector to change and blah. But i dont know were that vector is. Happy?
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Arkage » Wed Feb 23, 2011 5:29 pm

What is SNR?

Singal to noise ratio id guess.
User avatar
Arkage
 
Posts: 66
Joined: Thu Nov 19, 2009 4:17 pm

Postby Karall » Fri Feb 25, 2011 10:30 pm

No help? It seems like sense everyone know what it is why dont just tell?
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby lth » Fri Feb 25, 2011 11:42 pm

Karall:

If you want to make the player appear taller there is a whole load of different things you have to do, some of which are not really possible using vanilla Quake. Here's a list off the top of my head:

- adjust the player view height
- adjust the spawn vectors of all the player weapon firing functions (mostly in weapons.qc but there are a couple for nails and... lightning? in player.qc). As leillol said, adjusting them all to be relative to self.view_ofs is a sensible thing to do because then you only have to tweak the view_ofs when the player is constructed in client.qc to make all the weapons fire correctly.
- apparent player height for monsters: easy, just change the player sizes given in PutClientInServer in client.qc (though this can have odd effects on the world, see below) (this is necessary to ensure that monsters will effectively shoot the full size of your taller player)
- player clipping against world: this is really tricky, because Quake has 3 "hulls" for clipping the player against the world, and they are of fixed size: a zero-sized one, a player-sized one and an ogre/fiend/shambler-sized one. If you want the player to appear taller then you can't push the view_ofs much further up without running the risk of it being outside of the clip hull, which means if you go through a low doorway the view_ofs will float through the wall above. Your only option here is to pick the shambler-sized hull, but that is significantly wider as well a taller so if that's not what you want it's a problem. Also using hull2 means that you'll break compatibility with pretty much all existing Quake maps, which use a hull1-sized box for player spawn point placement.
User avatar
lth
 
Posts: 144
Joined: Thu Nov 11, 2004 1:15 pm

Postby Karall » Sat Feb 26, 2011 12:21 am

Now there's a proper anwser. Thanks alot! :P
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Previous

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest