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

Disable Collision between players.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MihaiGamerXD
Member
Join Date: Aug 2018
Old 04-10-2019 , 07:08   Disable Collision between players.
Reply With Quote #1

Hello everybody, I want to disable collision between players!
Here's the code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "No Collision"
#define VERSION "1.0"
#define AUTHOR "MihaiGamerXD"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Touch,"player","onCollision")
}

public 
onCollision(touched,toucher) {
    if (
get_user_team(touched) == get_user_team(toucher)) {
        return 
HAM_SUPERCEDE;
    }
    else {
        return 
HAM_IGNORED;
    }
    return 
HAM_IGNORED;

And it's still collising! Any ideas?
MihaiGamerXD is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-10-2019 , 07:52   Re: Disable Collision between players.
Reply With Quote #2

You're doing nothing with that, you can't block players from touching each other, touching and colliding aren't the same.
Why don't you simply remove the plugin that lets players collide?
__________________
edon1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-10-2019 , 09:48   Re: Disable Collision between players.
Reply With Quote #3

Edon it's by default...

And if you want players to not colide use semiclip plugins...
__________________
@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
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-10-2019 , 10:15   Re: Disable Collision between players.
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
Edon it's by default...

And if you want players to not colide use semiclip plugins...
My bad, for some reason I thought colliding was passing through something but it's actually the opposite.
__________________
edon1337 is offline
MihaiGamerXD
Member
Join Date: Aug 2018
Old 04-10-2019 , 10:43   Re: Disable Collision between players.
Reply With Quote #5

I also tried this:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <engine>

#define PLUGIN "No Collision"
#define VERSION "1.0"
#define AUTHOR "MihaiGamerXD"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Touch,"player","onCollision")
}

public 
onCollision(touched,toucher) {
    if (
get_user_team(touched) == get_user_team(toucher)) {
        
entity_set_int(touchedEV_INT_solidSOLID_TRIGGER);
    }
    else {
        
entity_set_int(touchedEV_INT_solidSOLID_BBOX);
    }
    return 
HAM_IGNORED;

Still doesn't work! It shows an error like "Trigger in clipping list!"! This makes no sense! And I'm playing TFC, not CS!

Last edited by MihaiGamerXD; 04-10-2019 at 10:50.
MihaiGamerXD 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 20:10.


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