[Advanced Coders] [Brainstorm] Semi-Clip Fix?
hey, as many of you know, there's a few "semi-clips" out there. But they all have some sort of problem. I can't remeber where but, one works great until your on a "train" entity then it breaks that entity your standing on and causes it not to move.
Another way is the common way. SOLID_NOT. Now the only issue with this is, once you become SOLID_NOT, you can't "touch" things anymore. So entity triggers don't always work like hurt. Now, I am trying to think of a fix for this.. the best I can come up with at this point is to do a trace line down. And if your < 2 units from an entity below you, grab it's name, if it has a classname of xyz (idk like entities that hurt you, I can't think of the name atm.), then remove SOLID_NOT. But ... yea.. .any other ideas? |
Re: [Advanced Coders] [Brainstorm] Semi-Clip Fix?
One solution maybe hooking FM_ShouldCollide, but I never found out how it works.
|
Re: [Advanced Coders] [Brainstorm] Semi-Clip Fix?
Humm... I've never seen that before, I'll take a look now.
|
Re: [Advanced Coders] [Brainstorm] Semi-Clip Fix?
From client.cpp:
Code:
/* |
Re: [Advanced Coders] [Brainstorm] Semi-Clip Fix?
1 Attachment(s)
what about http://forums.alliedmods.net/showthread.php?t=69728 + these fixes: http://forums.alliedmods.net/showpos...6&postcount=26 http://forums.alliedmods.net/showpos...8&postcount=32 (rather check for a trigger_gravity in the map and if yes use that fix)
never had problems with it and there is just one bug left for that semiclip which is in every semiclip so far: if you try to spec a semiclipped player through hltv it looks really ugly xD dunno how to impress me but i guess it has sth to with pev_angles + roll edit: i just remember that i read somewhere (i think it was in hawks semiclip tutorial) that shouldcollide is called very often + it doesnt work properly for semiclip + i found this fix for the old semiclip method which just sets pev_solid |
| All times are GMT -4. The time now is 09:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.