AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Request] semiclip.amxx + stuck.amxx = bad :( (https://forums.alliedmods.net/showthread.php?t=76016)

Ejziponken 08-16-2008 20:20

[Request] semiclip.amxx + stuck.amxx = bad :(
 
2 Attachment(s)
Okej, im having a hole new problem now. :)

I was searhing for a semiclip.amxx, and i found one i like. But i got a new problem with another plugin.

The new problem is that i also running stuck.amxx and with the new semiclip plugin the stuck.amxx sems to wanna "unstuck" everybody when they are running in to eachother, which is VERY annoying, so i cant use them together, but i need them both..

Is there anybody that could fix this problem? :S

`666 08-16-2008 21:36

Re: semiclip/noblock
 
No one will able to fix it without source (.sma) and you not allowed to post .amxx

Ejziponken 08-17-2008 05:03

Re: semiclip/noblock
 
Quote:

Originally Posted by `666 (Post 670814)
No one will able to fix it without source (.sma) and you not allowed to post .amxx


I will try to find the sma.

i found the code i used. :)

Code:

#include <amxmodx>
#include <cstrike>
#include <fakemeta>
 
#define PLUGIN "No Block RM"
#define VERSION "1.1"
#define AUTHOR "teame06"
 
public plugin_init()

        register_plugin(PLUGIN, VERSION, AUTHOR)
 
        register_forward(FM_StartFrame, "fwd_startframe")
}
 
public fwd_startframe()
{
        static players[32], num, player, person
        static Float:player_origin[3], Float:person_origin[3], Float:player_origin2[3], Float:person_origin2[3]   
        get_players(players, num, "ah")
 
        for (new i = 0; i < num; i++)
        {
                player = players[i]
 
                set_pev(player, pev_solid, SOLID_BBOX)
                fm_set_rendering(player)
 
                pev(player, pev_origin, player_origin)
 
                player_origin2[2] = player_origin[2]
                player_origin[2] = 0.0;
 
                for (new j = 0; j < num; j++)
                {
                        person = players[j]
 
                        if (player == person || cs_get_user_mapzones(person) & CS_MAPZONE_BUY || get_user_team(player) != get_user_team(person))
                                continue
 
                        if  (!(get_user_team(person) == 2))
                                return PLUGIN_HANDLED
 
                        pev(person, pev_origin, person_origin)
 
                        person_origin2[2] = person_origin[2]
                        person_origin[2] = 0.0
 
                        if ((vector_distance(player_origin, person_origin) < 100 && vector_distance(player_origin2, person_origin2) < 110))
                        {
                                set_pev(player, pev_solid, SOLID_NOT)
                                fm_set_rendering(player, kRenderFxNone, 0, 0, 0, kRenderTransAdd, 50)
 
                                set_pev(person, pev_solid, SOLID_NOT)
                                fm_set_rendering(person, kRenderFxNone, 0, 0, 0, kRenderTransAdd, 50)
 
                                break
                        }
                }
        }
 
        return PLUGIN_CONTINUE
}
 
stock fm_set_rendering(ent, fx=kRenderFxNone, r=255, g=255, b=255, rend=kRenderNormal, amt=16)
{
        set_pev(ent, pev_renderfx, fx)
 
        new Float:rendColor[3]
 
        rendColor[0] = float(r)
        rendColor[1] = float(g)
        rendColor[2] = float(b)
        set_pev(ent, pev_rendercolor, rendColor)
 
        set_pev(ent, pev_rendermode, rend)
        set_pev(ent, pev_renderamt, float(amt))
}


Exolent[jNr] 08-17-2008 13:39

Re: Modify semiclip - got the code/sma
 
http://forums.alliedmods.net/showthread.php?t=69728

Ejziponken 08-17-2008 15:32

Re: Modify semiclip - got the code/sma
 
Quote:

Originally Posted by Exolent[jNr] (Post 671170)


Okej, im having a hole new problem now. :)

I was searhing for a semiclip.amxx, and i found one i like. But i got a new problem with another plugin.

The new problem is that i also running stuck.amxx and with the new semiclip plugin the stuck.amxx sems to wanna "unstuck" everybody when they are running in to eachother, which is VERY annoying, so i cant use them together, but i need them both..

Is there anybody that could fix this problem? :S

morakatti 08-19-2008 05:43

Re: [Request] semiclip.amxx + stuck.amxx = bad :(
 
You could always ask someone to make it like the semiclip,
That it wont affect players only entities or what ever its called O.o

Paulster1022 08-27-2008 00:47

Re: [Request] semiclip.amxx + stuck.amxx = bad :(
 
2 Attachment(s)
Hey, I was also getting the same problem in my server. So i decided to merge both plugins, added a global boolean, Tested it... Works Great.. Try it out :)

Styles 08-27-2008 00:57

Re: [Request] semiclip.amxx + stuck.amxx = bad :(
 
paul stop failling.

entc 08-30-2008 11:37

Re: [Request] semiclip.amxx + stuck.amxx = bad :(
 
I need this plugin too, so i bumped the thread.

EDIT: I tested Paulsters plugin and it worked, but it made A LOT of errormessages in my logfiles.

Ejziponken 08-31-2008 05:10

Re: [Request] semiclip.amxx + stuck.amxx = bad :(
 
Quote:

Originally Posted by entc (Post 678533)
I need this plugin too, so i bumped the thread.

EDIT: I tested Paulsters plugin and it worked, but it made A LOT of errormessages in my logfiles.

Like this?:


L 08/30/2008 - 18:52:29: [AMXX] Run time error 4: index out of bounds
L 08/30/2008 - 18:52:29: [AMXX] [0] semistuck.sma::preThink (line 176)
L 08/30/2008 - 18:52:29: [AMXX] Displaying debug trace (plugin "semistuck.amxx")

http://forums.alliedmods.net/showthr...565#post678565


All times are GMT -4. The time now is 22:31.

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