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

Player in Player collision (w/o Noblock)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 08-18-2011 , 11:19   Player in Player collision (w/o Noblock)
Reply With Quote #1

Hi, I searched everywhere, but I didn't found another solution to fix player in player collision (e.g. two players teleported at once), witout permanent no-block. I have idea how to do it, but I am not familiar with SourcePAWN and I don't know how to realise it.

Idea: Plugin check when two or more players are in the same or near position, if true then give them noblock until they move out of stuck.

Thanks for any help, i think this will be useful to all.
__________________
Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks
musosoft is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 08-19-2011 , 03:34   Re: Player in Player collision (w/o Noblock)
Reply With Quote #2

Have a look at zombie reloaded's unstick/unstuck? module. Basically it does a tracehull test with the player's bounds to check if there's another player in it.
__________________
Peace-Maker is offline
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 08-19-2011 , 20:27   Re: Player in Player collision (w/o Noblock)
Reply With Quote #3

Quote:
Originally Posted by Peace-Maker View Post
Have a look at zombie reloaded's unstick/unstuck? module. Basically it does a tracehull test with the player's bounds to check if there's another player in it.
Thanks for reply, I tryied zr 3.0b2 includes to create separate antistick plugin, but It's not working (also I got a lot of warnings while compiling). What I did bad?

PHP Code:
#define USE_SDKHOOKS

#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <clientprefs>
#include <cstrike>

#if defined USE_SDKHOOKS
    #include <sdkhooks>
    
    #define ACTION_CONTINUE     Plugin_Continue
    #define ACTION_HANDLED      Plugin_Handled
#else
    #include <zrtools>
    
    #define ACTION_CONTINUE     ZRTools_Continue
    #define ACTION_HANDLED      ZRTools_Handled
#endif

#include "zr/log.h"
#include "zr/zombiereloaded"
#include "zr/translation"
#include "zr/cvars"
#include "zr/admintools"
#include "zr/antistick"
#include "zr/log"
#include "zr/tools"
#include "zr/overlays"
#include "zr/roundstart"
#include "zr/roundend"
#include "zr/commands"

#define VERSION "1.0.0"

public Plugin:myinfo =
{
    
name "AntiStick",
    
author "muso.sk, base by Greyscale | Richard Helgeby",
    
description "Unstick stucked players",
    
version VERSION,
    
url "http://sourcemod.net"
};

public 
OnClientPutInServer(client)
{
    
AntiStickClientInit(client);
}

public 
OnClientDisconnect(client)
{
    
AntiStickOnClientDisconnect(client);

__________________
Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks
musosoft is offline
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 08-19-2011 , 22:39   Re: Player in Player collision (w/o Noblock)
Reply With Quote #4

antistick caused physical bug.
There is many thread about antistick.
jungjunghoo is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 08-20-2011 , 00:31   Re: Player in Player collision (w/o Noblock)
Reply With Quote #5

i think they are using the new method (changing player collision boundaries) now which doesnt cause the mayhem bug
Zephyrus is offline
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 08-20-2011 , 03:56   Re: Player in Player collision (w/o Noblock)
Reply With Quote #6

Quote:
Originally Posted by Zephyrus View Post
i think they are using the new method (changing player collision boundaries) now which doesnt cause the mayhem bug
I want to know that.
Does anybody know?
jungjunghoo is offline
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 08-20-2011 , 10:28   Re: Player in Player collision (w/o Noblock)
Reply With Quote #7

Quote:
Originally Posted by jungjunghoo View Post
I want to know that.
Does anybody know?
https://forums.alliedmods.net/showpo...&postcount=161
__________________
Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks
musosoft is offline
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 08-20-2011 , 10:50   Re: Player in Player collision (w/o Noblock)
Reply With Quote #8

Quote:
Originally Posted by musosoft View Post

noblock + antistick?
jungjunghoo 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 17:51.


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