halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[HL][REQUEST] Gauss fix for lamps.

Open L453rh4wk opened this issue 11 years ago • 6 comments

When a player shoots to two contiguous wall blocks and the first block is very thin (like the lamps in crossfire), the gauss trace will pass the first wall and start the damage radius between the two walls, penetrating a ridiculous amount of "matter".

I've fixed it doing this: In gauss.cpp, line 371

TraceResult tr, beam_tr;

editing the same line adding another traceresult

TraceResult tr, beam_tr, beam_tr2;

and after this block of code (close to line 477):

// trace backwards to find exit point
UTIL_TraceLine( beam_tr.vecEndPos, tr.vecEndPos, dont_ignore_monsters, pentIgnore, &beam_tr);

adding this:

UTIL_TraceLine( beam_tr.vecEndPos, beam_tr.vecEndPos + vecDir * 8, dont_ignore_monsters,pentIgnore, &beam_tr2);

if (beam_tr2.fAllSolid || beam_tr2.fStartSolid || beam_tr2.flFraction != 1.0)
    break;

I don't know if this is the better way to fix it but it seems to work very well, without altering the gauss gun mechanics

L453rh4wk avatar Sep 09 '14 23:09 L453rh4wk

No no no this doesn't needs to be fixed.. EDIT:This is what pro players are used to.

HARDSTYLEBG avatar Sep 13 '14 06:09 HARDSTYLEBG

A professional HL player has no need to use bugs in his favor, unlike newbies do. Maybe using a CVAR will please both worlds (newbies and pros). Also there's an amxmodx's plugin to deal with this but the method used is not practical, because it uses a coordinates list for each lamp, for each map.

L453rh4wk avatar Sep 14 '14 01:09 L453rh4wk

My opinion doesn't matter that much, because I am not the average Half-Life player, but to be honest I share the opinion of @HARDSTYLEBG What you see as a bug is a feature for some users. So if you "fix" it, there has to be at least a cvar or s.th.. Also in my humble opinion this "fix" is up to people that create their own modification I think. I remember back in the days how people raged about the CS 1.6 updates where they "fixed" stuff that people had become used to and most didn't really see it as "broken". Of course we can now start an endless debate of where to draw the line between bug and feature, I'd vote for feature in this case though.

dtugend avatar Sep 14 '14 18:09 dtugend

Please don't let my comment discourage you from posting further fixes and features! I added your fix in the Wiki.

dtugend avatar Sep 14 '14 19:09 dtugend

Well in this case why don't alfred add sv_bhop 1 command for the unlimited bhop cap "will please both worlds (newbies and pros)."

HARDSTYLEBG avatar Sep 15 '14 19:09 HARDSTYLEBG

@mikela-valve The PRO scene from HL is long gone, this is an old exploit, shouldn't be treated as a feature.

Maxi605 avatar Feb 25 '21 00:02 Maxi605