Author Topic: Two technical questions about Quake 4  (Read 82 times)

Offline Starshot

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • Rated:
Two technical questions about Quake 4
« on: July 02, 2025, 04:00:22 PM »
Hey everybody,

I got two questions regarding Quake 4:

1. Is there a way to permenatly save the "pm_speed command" to the configfile (or anywhere else) so I don't have to put it in manually everytime I die?

2. Is there a way to fixate the weapon so that it won't move around when I stand still or walk?
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1377
    • View Profile
  • Rated:
Re: Two technical questions about Quake 4
« Reply #1 on: July 03, 2025, 07:03:14 AM »
1. From the source code it looks like the pm_* cvars are stored in a def/player.def file. Look there.
2. I'm not sure if it can be de-animated. You might try setting g_gun_pitch, g_gun_yaw, g_gun_roll to zero and see if that's what you want. Otherwise, I'd investigate what g_gunViewStyle does for you.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Starshot

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • Rated:
Re: Two technical questions about Quake 4
« Reply #2 on: July 03, 2025, 01:03:03 PM »
Thanks for your reply.

Sorry I forgot to mention that I'm on the original vanilla DVD Quake 4. So I only have the configfile.

As for those commands: those are all command lines for your weapon positioning. Like for instance if you like your gun higher shown or more to the right or shouldered etc.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1377
    • View Profile
  • Rated:
Re: Two technical questions about Quake 4
« Reply #3 on: July 04, 2025, 06:58:32 AM »
OK. I'll have to take your word on that. I don't have the original source code for Q4 and I don't think it was ever published. Only the game code I found online as Q4SDK. I assumed it wasn't too far from the original game. If the q4sdk was more advanced then I guess there isn't a fix in the vanilla game code, seems kind of a cheat anyway if a client can change his speed. I see the default speed is 160 in q4sdk and there are no limits or clamps on the value it can be set to.

Those are not gun positioning commands. Those are acceleration values applied to the gun animation when the player view changes in response to turns and jumps, etc., bobbing. The gun position variables are g_gun_x, g_gun_y, g_gun_z that position the gun in the view.

I hope someone else can answer more authoritatively for you.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

|iR|Focalor

July 04, 2025, 06:33:05 AM
 

RyU

June 29, 2025, 06:27:46 PM
Q2 must never die  :)
 

|iR|Focalor

May 26, 2025, 01:17:30 PM
 

-Unh0ly-

May 22, 2025, 05:45:28 PM
 

Yotematoi

May 17, 2025, 08:33:15 AM
Yo desde el año 2007 me enfermé de Q2, es incurable  
Morir y revivir es costumbre, lástima q el QT estaba bueno
 

ImperiusDamian

May 12, 2025, 01:45:35 AM
Quake II is not 27 years old. I refuse to accept THAT much time has gone by.
 

|iR|Focalor

May 11, 2025, 02:33:39 PM
 

-Unh0ly-

May 03, 2025, 08:02:46 AM
198.179.6.200:30634
 

Yotematoi

May 02, 2025, 10:27:47 AM
Note for Player-4109 "Remember, the Guinness Book of Records does not include cowards who shot at someone by treachery." :D

Show 50 latest
Welcome, Guest. Please login or register.
July 06, 2025, 12:21:21 AM

Login with username, password and session length