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

[REQ] Another type of NoClip [PAYMENT]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 12-22-2012 , 06:22   [REQ] Another type of NoClip [PAYMENT]
Reply With Quote #1

Hi.

I need some lines of code with a noclip other than set_user_noclip included in the fun module.

I want to set the noclip without flying.I mean he can walk and jump on the ground as a normal player but when he touches a wall or an entity to be able to go through it "activating" the noclip.

I know it is possible because i have seen it a long time ago but i don't know how to do it.

Thank you and have a nice day.

P.S. I am ready to pay for it if it's necesary.
bLacK-bLooD is offline
Magnificent
BANNED
Join Date: Oct 2012
Old 12-22-2012 , 10:04   Re: [REQ] Another type of NoClip [PAYMENT]
Reply With Quote #2

Try this:

Couldn't think about a nice name for the natives so I used ([g/s]et_user_entity)

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "Run throught entities"
#define VERSION "1.0"
#define AUTHOR "Xalus"

new bool:bCanGoThrought[33]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Register: Ham
    
RegisterHam(Ham_Touch"player""Ham_TouchPlayer")
}
public 
plugin_natives()
{
    
register_native("get_user_entity""native_get")
    
register_native("set_user_entity""native_set")
}
public 
native_get(iPluginiParams)
{
    new 
id get_param(1)
    if(
is_user_connected(id))
        return 
int:bCanGoThrought[id]
    return 
0
}
public 
native_set(iPluginiParams)
{
    new 
id get_param(1)
    if(
is_user_connected(id))
        return (
bCanGoThrought[id] = bool:get_param(2))
        
    return 
0
}
public 
Ham_TouchPlayer(identity)
{
    if(
is_user_alive(id) && pev_valid(entity) && !is_user_connected(entity) && bCanGoThrought[id])
    {
        
set_pev(entitypev_ownerid)
    }


Last edited by Magnificent; 12-22-2012 at 10:14.
Magnificent is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 12-22-2012 , 13:02   Re: [REQ] Another type of NoClip [PAYMENT]
Reply With Quote #3

Thank you. What i really need it for is to include this code in something like this (cases) :

PHP Code:
        case 1:
        {
          
//noclip code here
        

As i can see there are a lot of other code and public functions and i have no idea how can i include all of those into one case (case 1)
bLacK-bLooD is offline
Magnificent
BANNED
Join Date: Oct 2012
Old 12-22-2012 , 19:40   Re: [REQ] Another type of NoClip [PAYMENT]
Reply With Quote #4

Post whole code, and I will add it.
Magnificent is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 06-29-2013 , 16:50   Re: [REQ] Another type of NoClip [PAYMENT]
Reply With Quote #5

sorry for big BUMP..

but really actual, how to fix problem if two or more players at one moment will try to go through some entity .

as you see pev_owner will changes a lot of times in second. and any players which want to go through wall will stuck in it.

how to fix it?
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT
AngeIII is offline
Send a message via Skype™ to AngeIII
quilhos
Veteran Member
Join Date: Jun 2010
Old 06-30-2013 , 00:03   Re: [REQ] Another type of NoClip [PAYMENT]
Reply With Quote #6

Well what you guys are asking for is Semiclip
link = https://forums.alliedmods.net/showthread.php?t=137980
Just take the code, and put the function when you guys want it.
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!

Last edited by quilhos; 06-30-2013 at 00:04.
quilhos is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 06-30-2013 , 09:35   Re: [REQ] Another type of NoClip [PAYMENT]
Reply With Quote #7

not really, semiclip for players..

but I ask for entity semiclip for specific players , or noclip for players for specific entity.

for example door:
You are player A, you can go through door like noclip ( set_pev(iDoorEnt,pev_owner,id); )
but if in one moment two or more players will try to go through the door they will stuck in it, cause pev_owner will change a lot of times in second..

i'm looking for way how to set entity_solid state or pev_owner for multiple players, but not for all ( cause some players should not go through the door .. )
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT
AngeIII is offline
Send a message via Skype™ to AngeIII
quilhos
Veteran Member
Join Date: Jun 2010
Old 07-01-2013 , 07:57   Re: [REQ] Another type of NoClip [PAYMENT]
Reply With Quote #8

Ok now I get what you rly want. Well It probably can be make, since you only want for entity_solid states. I will try to find some stuff about that, but I'm not rly sure if I can help, sry.
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos 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 11:03.


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