Raised This Month: $ Target: $400
 0% 

Solved FM_ShouldCollide is never called.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-15-2023 , 03:19   Re: FM_ShouldCollide is never called.
Reply With Quote #1

Is your NPC solid? If I remember correctly not all SOLID types gets called in pfnShouldCollide
__________________
JusTGo is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-15-2023 , 06:07   Re: FM_ShouldCollide is never called.
Reply With Quote #2

Quote:
Originally Posted by JusTGo View Post
Is your NPC solid? If I remember correctly not all SOLID types gets called in pfnShouldCollide
Yea its solid slidebox
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-15-2023 , 15:05   Re: FM_ShouldCollide is never called.
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
Yea its solid slidebox
Are using ReHLDS? also show your code so we can reproduce it
__________________
JusTGo is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-15-2023 , 15:36   Re: FM_ShouldCollide is never called.
Reply With Quote #4

Quote:
Originally Posted by JusTGo View Post
Are using ReHLDS? also show your code so we can reproduce it
Yeah,

PHP Code:
public plugin_init()
register_forward(FM_ShouldCollide"pfnShouldCollide", ._post false);

public 
pfnShouldCollide(const touched, const passedict)
{
    
cprint_chat(0_"Colliding %d >< %d"touchedpassedict);

    if(
pev(touchedNPC_ID) == pev(passedictNPC_ID))
    {
        
//forward_return(FMV_CELL, 0);
    
}

This is never called, and yesi am using rehlds and regamedll
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 23:24.


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