Commit 62fb9ff
committed
gameplay: make caber damage consistent
since the caber used distance mod, its base damage
was extremely inconsistent and seemingly random,
with a player essentially needing to "aim" this
melee weapons using their eye position.
also set the explosion location to the player's center, so that
the explosion falloff is much more consistent and easier to
land optimally.
we set DMG_NOCLOSEDISTANCEMOD because there are various parts of
the code which adjust the damage when this flag is not present,
without checking if DMG_USEDISTANCEMOD is really applied.
also treat the caber as a grenade in all cases in the code,
for consistency.
finally, add missing charge mini-crit code for the caber and
pain train.
ref: ValveSoftware/Source-1-Games#44281 parent 2969b92 commit 62fb9ff
File tree
3 files changed
+4
-4
lines changed- src/game
- server/tf/player_vs_environment/boss_alpha
3 files changed
+4
-4
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5848 | 5848 | | |
5849 | 5849 | | |
5850 | 5850 | | |
5851 | | - | |
| 5851 | + | |
5852 | 5852 | | |
5853 | 5853 | | |
5854 | 5854 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
| |||
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | | - | |
| 194 | + | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| |||
0 commit comments