Raised This Month: $ Target: $400
 0% 

[REQUEST] Team SemiClip (please?)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Monkeh
Member
Join Date: Oct 2005
Old 06-08-2007 , 19:02   [REQUEST] Team SemiClip (please?)
Reply With Quote #1

This plugin would be extremely beneficial for my bunny hop server so I hope it's not hard to make. When I tried to make a search I came up with a result that I exactly want, and he does as well.

"...by team semiclip I mean that you can pass through your teammates (no blocking), but not through your enemies (and of course you can still shoot them ^^).
I own a csdm server and sometimes it's very boring being stuck by other players..."

Thanks in advance if anybody comes through with the plugin.
__________________
Monkeh is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-08-2007 , 23:01   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #2

maybe something like this?
Code:
#include <amxmodx> #include <fakemeta> #include <cstrike> public plugin_init() {     register_plugin("Pass Through Teamates", "1.0", "Rolnaaba");         register_forward(FM_Touch, "fw_ent_touch"); } public fw_ent_touch(ptr, ptd) {     if(ptr <= 0 || ptr >= 33) return FMRES_IGNORED;     if(ptd <= 0 || ptd >= 33) return FMRES_IGNORED;         new ptrClassname[33];     pev(ptr, pev_classname, ptrClassname, 32);         new ptdClassname[33];     pev(ptd, pev_classname, ptdClassname, 32);             if(contain(ptrClassname, "player") != -1 && contain(ptdClassname, "player") != -1 && (cs_get_user_team(ptr) == cs_get_user_team(ptd))) {         if(pev_valid(ptr)) {                        set_pev(ptr, pev_solid, 0);         }         if(pev_valid(ptd)) {             set_pev(ptd, pev_solid, 0);         }                 new param[2];         param[0] = ptr;         param[1] = ptd;                 set_task(1.5, "set_solid", 1234, param, 2);         return FMRES_SUPERCEDE;     }     return FMRES_IGNORED; } public set_solid(param[2]) {     new ptr = param[0];     new ptd = param[1];         set_pev(ptr, pev_solid, 2);     set_pev(ptd, pev_solid, 2); }
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Monkeh
Member
Join Date: Oct 2005
Old 06-10-2007 , 22:41   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #3

This is exactly what I'm looking for, but it works to an extent. There seems to be a delay when you go through the player meaning you can still bump each other rendering this plugin basically useless for my bunnyhop server. Is there a way to fix this? Thanks again in advance.
__________________
Monkeh is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-10-2007 , 23:28   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #4

the only other way I can think of is, to give them noclip when they touch eachother, but they would get stuck in walls ect. so this is the best I got, if anyone else has something post it please.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
pRED*
Join Date: Dec 2006
Old 06-11-2007 , 02:53   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #5

I think you're on the right track. Possibly use a trace sphere every client_prethink to detect enemies within a certain range.

The problem with registering a touch is that they have already colided (and therefore messed up the bhopping) when you set non solid. You need to detect the collision before it actually happens.

But constantly tracing a sphere sounds pretty inefficient..
pRED* is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-11-2007 , 06:50   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #6

I have edit an existing plugin from "JB"
It should work but i have not tested it..
btw.: you can boost with say /boost
The cvars should be ok as they are in the code...no need to change..

greetz regalis
Attached Files
File Type: sma Get Plugin or Get Source (TeamSemiclip.sma - 1391 views - 2.5 KB)
__________________
regalis is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-11-2007 , 10:22   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #7

eewwww...engine?!?! you dissappoint me regalis! Here is fakemeta version:
Attached Files
File Type: sma Get Plugin or Get Source (TeamSemiclip.sma - 1960 views - 3.3 KB)
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-11-2007 , 21:33   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #8

i have just edited an existing semiclip plugin
good that you have converted it..im too lazy *hehe*
ThX and greetz ;)
__________________
regalis is offline
Monkeh
Member
Join Date: Oct 2005
Old 06-12-2007 , 03:50   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #9

Guys, you have gone above and beyond my expectations, thanks a lot
__________________
Monkeh is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-12-2007 , 09:27   Re: [REQUEST] Team SemiClip (please?)
Reply With Quote #10

np i almost pukes though, engine gives me shivers lol.
__________________
DO NOT PM me about avp mod.
Rolnaaba 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 19:19.


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