Raised This Month: $51 Target: $400
 12% 

FM_Touch help me?


Post New Thread Reply   
 
Thread Tools Display Modes
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-16-2014 , 06:10   Re: FM_Touch help me?
Reply With Quote #11

Quote:
Originally Posted by meTaLiCroSS View Post
register_touch > Ham_Touch > FM_Touch

Keep in mind the usage of register_touch beside the others.
register_touch() vs Ham_Touch is circumstantial really. There are many cases where using hamsandwich would be beneficial since the forward can be unregistered.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 05-16-2014 , 06:33   Re: FM_Touch help me?
Reply With Quote #12

About register_touch, is it possible to catch every touch to specific entity?
For example, register_touch("weaponbox", "player", "Touch_WeaponBox"); but I would need to check if it touches world too. With ham I can do that, but with register_touch? Register it twice?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-16-2014 , 06:48   Re: FM_Touch help me?
Reply With Quote #13

Quote:
Originally Posted by GuskiS View Post
About register_touch, is it possible to catch every touch to specific entity?
For example, register_touch("weaponbox", "player", "Touch_WeaponBox"); but I would need to check if it touches world too. With ham I can do that, but with register_touch? Register it twice?
Specifying "*" will detect any touch. An alternative is "worldspawn" for touches on world only.
Can't say which module will be better for you without knowing what you want to achieve.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 05-16-2014 , 07:03   Re: FM_Touch help me?
Reply With Quote #14

Best thing would be to have a profiler who can tell what forward is the less greedy.

I know it's bad but, sometimes, i just want to DL an old build version of cs just to run 1.8.1 profiler and monitor some funcs...
Fr33m@n is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-16-2014 , 07:12   Re: FM_Touch help me?
Reply With Quote #15

Ham should be the fastest one, but it only allows you to specify one classname so it depends on what you want to do with it.
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 05-16-2014 at 07:12.
Backstabnoob is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-16-2014 , 07:31   Re: FM_Touch help me?
Reply With Quote #16

Quote:
Originally Posted by Fr33m@n View Post
Best thing would be to have a profiler who can tell what forward is the less greedy.

I know it's bad but, sometimes, i just want to DL an old build version of cs just to run 1.8.1 profiler and monitor some funcs...
If there's a difference it will be trivial and irrelevant. You should be focused on which method will be called less times.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 05-16-2014 , 07:45   Re: FM_Touch help me?
Reply With Quote #17

Atm I'm using ham_touch for detecting if my thrown knife hits something. If wall, change movetype and drop to ground. If player, I ham_killed him. But the problem is, sometimes, very rarely, when player is hit, server freezes and crashes, I don't know why.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Reply



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 22:00.


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