Raised This Month: $32 Target: $400
 8% 

[TUT] Semiclip


Post New Thread Reply   
 
Thread Tools Display Modes
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 05-08-2008 , 06:36   Re: [TUT] Semiclip
Reply With Quote #41

Quote:
Originally Posted by connorr View Post
Witch method are you talking about ?
As I said, the first one.
__________________
FatalisDK is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-08-2008 , 06:42   Re: [TUT] Semiclip
Reply With Quote #42

My bad, though it was coderiz thread
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-08-2008 , 07:03   Re: [TUT] Semiclip
Reply With Quote #43

Try using FMRES_HANDLED.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 05-08-2008 , 07:07   Re: [TUT] Semiclip
Reply With Quote #44

I'll try that later. By the way, your engine example of the first method doesn't work either.
__________________
FatalisDK is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-08-2008 , 16:35   Re: [TUT] Semiclip
Reply With Quote #45

I think it may be a blanket problem for all touches that it doesn't work anymore. It used to the first time I used it. Maybe an engine update or something.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 05-09-2008 , 18:49   Re: [TUT] Semiclip
Reply With Quote #46

Quote:
Originally Posted by Alka View Post
Oh, like in hamsandwich ?
Not quite, it's too offtopic to explain in dirty details, but the gist of it is hamsandwich doesn't do the classname lookup so it is faster, but it is not possible to create your own classname for the Ham_Think hook. You need to piggy back off of whatever you base your custom entities off of (typically people use 'info_target') and check the classname there.
__________________
fyren sucks
sawce is offline
DeepBlueSea
Junior Member
Join Date: Jul 2007
Old 05-18-2009 , 15:54   Re: [TUT] Semiclip
Reply With Quote #47

Quote:
Originally Posted by Hawk552 View Post
Code:
   
#include <amxmodx>
#include <engine>

public plugin_init()
{
    register_plugin("Semiclip Test 1","1.0","Hawk552")
   
    register_touch("player","player","TouchPlayer")
}

public TouchPlayer(/*Ptr,Ptd*/)
    return PLUGIN_HANDLED
This looks pretty nice and easy (of course you'd have to add more like cvar checks and such), but there's one catch: it really doesn't do what you want it to. Because of client prediction, the player gets stopped first and then passes through. If you're using this on the ground it's really not a big deal (although kind of annoying), but when you're using it for something like surfing (like I am), it becomes a big problem.
This would be the perfect solution for me. Sadly it doesn't work. Can anyonne confirm this?

Last edited by DeepBlueSea; 05-18-2009 at 16:00.
DeepBlueSea is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-18-2009 , 16:40   Re: [TUT] Semiclip
Reply With Quote #48

Quote:
Originally Posted by DeepBlueSea View Post
This would be the perfect solution for me. Sadly it doesn't work. Can anyonne confirm this?
Yes.

http://forums.alliedmods.net/showthread.php?t=87690
__________________
joaquimandrade is offline
DeepBlueSea
Junior Member
Join Date: Jul 2007
Old 05-18-2009 , 16:58   Re: [TUT] Semiclip
Reply With Quote #49

But why is it listed here? I don't care if it was buggy like described.
But it doesn't seem to work AT ALL. I see no change in collision behaviour whatsoever. Was there an update from valve or something? I don't really understand. :S
DeepBlueSea is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-18-2009 , 17:00   Re: [TUT] Semiclip
Reply With Quote #50

Quote:
Originally Posted by DeepBlueSea View Post
But why is it listed here? I don't care if it was buggy like described.
But it doesn't seem to work AT ALL. I see no change in collision behaviour whatsoever. Was there an update from valve or something? I don't really understand. :S
Try with return FMRES_SUPERCEDE or try ot's one.

PHP Code:

public TouchPlayer(Ptr,Ptd)
    return 
FMRES_SUPERCEDE 
__________________
joaquimandrade is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode