News | Forum | People | FAQ | Links | Search | Register | Log in
General Abuse
Talk about anything in here. If you've got something newsworthy, please submit it as news. If it seems borderline, submit it anyway and a mod will either approve it or move the post back to this thread.

News submissions: https://celephais.net/board/submit_news.php
First | Previous | Next | Last
Quake Doesn't Have Random Damage, Does It? 
I mean, I've always assumed it doesn't and in all my years of playing it's never felt like it does, but I recently saw someone on Doomworld claim that Quake just uses a more toned-down RNG than Doom -- a claim no-one's contradicted so far:

Quake has less absurd RNG damage than Doom does, and I still think it's dumb when an Ogre takes 3 grenades instead of 2, or I need 5 to kill a Vore.

Is there any truth to this? Have I been wrong all these years in thinking there's no RNG in Quake? I tried searching for information on this but couldn't find anything. 
Random Or Inconsistent? 
The rocket launcher is explicitly random on a direct hit, doing between 100 and 120 damage. It then does fixed radius damage to everything else in the area. So there's a random element, but it can't ever lead to an ogre surviving three direct hits (he has 200hp, so two minimum damage rockets suffice).

Grenades differ because they don't have a separate damage mechanism for the target they collide with. They just do 120 radius damage to everything, even the entity they hit. The key to maximising damage is to hit the ogre close to centre mass. If the grenade strikes the bounding box more than 20 units from the ogre's origin, you do less than 100 damage. Do that twice in a row, and the ogre takes three shots.

So there's no random number generation going on with the grenade, but it's subject to some mechanisms that can be arbitrary. For example, if you attack an ogre from the south-west direction, the corner of the bounding box is facing you, so your grenade can't get as close. If you attack from due south, you're presented with a flat face of a bounding box and the grenade gets closer before exploding. 
#31631 
From what can see in the code: dogs, Fiends, both Knights, fish, Ogres, Shamblers, Spawn and Vore use some RNG for damage.

As far as dealing damage to them this is the only RNG that I can see:

T_MissleTouch (rockets) damg = 100 + random()*20;

There are more experienced coders who can probably talk about T_RadiusDamage a.k.a. splash damage which I assume has some randomness.

Also shotgun pellets are in a random spread but not too sure if that affects the damage. 
Preach To The Rescue! 
Nice to see a expert level explanation! 
The More You Know 
Thanks for the answers and especially that detailed explanation, Preach!

By the way, would someone be so kind as to give me a link to the code in question? I assume it's on github somewhere, but I always get confused looking for things there. Doubt I'll be able to understand much of the code, but I'd like to have a look anyway -- presumable that's the first step towards understanding it. 
Continued From #31635 
This is as far as I get on my own (which I assume is the right place): https://github.com/id-Software/Quake/tree/master/WinQuake

I have no idea in which of the several files or sub-directories I should be looking, though... 
 
I believe this is the file you're looking for:
https://github.com/id-Software/Quake/blob/master/qw-qc/weapons.qc 
Strogg-Sothoth 
otp collected these Quake links for the Quake Mapping Discord - might be helpful:

QuakeWiki Modding Tutorial:
https://quakewiki.org/wiki/Getting_Started_Modding

QuakeC tutorial:
http://www.insideqc.com/qctut/

QuakeC Reference Manual in PDF:
http://pages.cs.wisc.edu/~jeremyp/quake/quakec/quakec.pdf

QuakeC Manual website version (with nice text formating):
http://www.cataboligne.org/extra/qcmanual.html

FTEQCC compiler:
http://fte.triptohell.info/moodles/fteqcc/

FTEQCC documentation:
http://icculus.org/~marco/quakec/fteqcc_manual.txt

Progs v1.01 source code:
https://github.com/id-Software/Quake-Tools/tree/master/qcc/v101qc

Progs v1.01 source code: (cleaned):
https://gitlab.com/quakec-v1-01-clean/quakec-v1-01-clean/commits/master

Progs v1.06 source code:
http://www.moddb.com/games/quake/downloads/quake-c-version-106

Hipnotic SDK:
http://www.gamers.org/pub/idgames2/more_idstuff/hipnotic/ 
Re: Quakec Source 
The source Strogg-Sothoth linked is for quakeworld, just be aware that quake and quakeworld had slightly different calculations for weapon attacks (at least, the shotguns are different.)

The "progs 1.01 sourcecode" dumptruck linked is the original quake version which is also what almost everyone would use for playing single player maps. 
Thanks, Everyone! 
The "progs 1.01 sourcecode" dumptruck linked is the original quake version which is also what almost everyone would use for playing single player maps.

Brilliant, thanks! 
 
correction, the "Progs v1.06 source code" is actually what most people would play (but the difference is only bug fixes, not major gameplay changes AFAIK) 
 
The source Strogg-Sothoth linked is for quakeworld, just be aware that quake and quakeworld had slightly different calculations for weapon attacks (at least, the shotguns are different.)

Oops, my bad. 
Thanks Again Everyone For The Links And Info 
(The four anonymous posts above were mine). 
Whats Wrong With This Picture 
Target "C:\Program Files (x86)\GOG Galaxy\Games\Quake\quakespasm\quakespasm-0.93.1_win64\quakespasm-0.93.1_win64\quakespasm.exe" -hipnotic -game quoth

Start inC:\Program Files (x86)\GOG Galaxy\Games\Quake\quakespasm\quakespasm-0.93.1_win64\quakespasm-0.93.1_win64"

I'm trying to play the ad mod but all I get is Quake start. Same when I try to play this mod. Tried Quake injector but even with java installed I get how do you want to open this file. 
 
lizard: try "-game ad" instead of "-hipnotic -game quoth" 
A Tip For The New Mappers / QM Crowd 
An observation from adding maps to Quaddicted:
There's no need to use BSP2 format unless the map is really really large and detailed - like Tronyn/Orl/ad_sepulcher type of stuff. Don't just switch format as soon as a warning message pops up. Engine protocol 666 can handle most levels that exceed vanilla (=protocol 15) limits.

More often than not you don't even need that. Frankly, I'm surprised how seemingly even the smallest maps are exceeding some limits these days. Then again, just an old geezer tilting at windmills. :) 
 
It occurs to me that there may be a misunderstanding that BSP2 is needed for features such as fence textures or detail brushed, so just to clear that up: it's not.

BSP2 contains no new features, it's only about raising format limits. So if you don't need raised limits, you don't need BSP2. 
Re Metlslime Whats Wrong With This Picture 
I did try -game ad and after that didn't work I tried quoth. Same incident. 
Lizard 
Are your ad and quoth directories called "ad" and "quoth"? If they are called something like "ad_v1_70final" and "quoth2pt2full_2", rename them to "ad" and "quoth" and then try again. 
Anonymous User 
Didn't work but thanks for the help 
Lizard 
I'm trying to play the ad mod but all I get is Quake start

So if I understand you correctly, you are able to start Quakespasm and play regular Quake (without any mods), right? So try this: start Quakespasm, pull down the console (which you do by pressing the tilde ("~") key if you are using a US/international keyboard layout) and type "game ad". 
Threekidsinatrenchcoat 
It says game changed to ad but quake start still comes up no ad anything 
 
Whats the name of the folder you keep all your arcane dimensions stuff in?

game "MOD FOLDER NAME"

so if your mod folder name is ADFINAL1_70 youll need to type that in. 
Lizard: 
okay next step... find your quake directory in windows explorer, and make sure there is a folder called "ad" that is a sibling to your "id1" folder, and makes sure there are some subfolders in the ad folder called "maps", "progs", etc 
Lizard Finally Got Ad Going 
Thanks to everyone for your expert advice getting the ad mod working. Putting the extra stuff on the end of the command was the answer for me. ad_v1_50final. My ad folder which is in the quake folder just says ad. In side is the 2 zip files (mod and patch) and the unzipped files. I unzipped the regular file first then the patch. After I chose a map and entered it it said completed and just set there. Somehow I stumbled across the right shift key and the game started. I have no idea why the shift key unless it is in the cfg. file. But I never would have got it going without you guys helping out. It's not like the initialization file said to do it. 
First | Previous | Next | Last
You must be logged in to post in this thread.
Website copyright © 2002-2024 John Fitzgibbons. All posts are copyright their respective authors.