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

UT Style Weapon Floating


Post New Thread Reply   
 
Thread Tools Display Modes
juleusjohn
Junior Member
Join Date: Mar 2010
Old 05-24-2010 , 17:50   Re: UT Style Weapon Floating
Reply With Quote #71

Quote:
Originally Posted by Deviance View Post
When i drop weapons whit this plugin they dissapear
It's a 16-slot CSDM server.

Lols,CSDM removes weapons when a player dies,u can edit this cvar in the CSDM.CFG,change the cvar "strip weapons" into 0.
juleusjohn is offline
PhantomBadger
Junior Member
Join Date: May 2010
Old 05-29-2010 , 17:39   Re: UT Style Weapon Floating
Reply With Quote #72

I found a bug, weapons are stuck in wall and you can't pick them up.

__________________
.:GHW:. .:Ultimate AMXX Fun + Custom plugins:.
89.221.243.11:27000
(Building of this server is still in process)
PhantomBadger is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-30-2010 , 12:16   Re: UT Style Weapon Floating
Reply With Quote #73

please fix the weapons stuck in wall bug
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Owyn
Veteran Member
Join Date: Nov 2007
Old 08-14-2011 , 11:19   Re: UT Style Weapon Floating
Reply With Quote #74

Quote:
fix the weapons stuck in wall bug
i fixed it kekeke
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 08-17-2011 at 04:34.
Owyn is offline
Send a message via ICQ to Owyn
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 09-02-2011 , 13:56   Re: UT Style Weapon Floating
Reply With Quote #75

weapons sometimes stopped to spin
__________________
luki1412 is offline
Junin - Made in Brazil
Member
Join Date: Mar 2009
Location: Brazil
Old 10-10-2011 , 16:55   Re: UT Style Weapon Floating
Reply With Quote #76

Quote:
Originally Posted by Owyn View Post
i fixed it kekeke

how?
__________________
The Best forum of Zombie Plague Brazilian :
Zplague Gaming
Junin - Made in Brazil is offline
nightstalker
Member
Join Date: Jun 2008
Location: Dallas
Old 11-11-2011 , 14:17   Re: UT Style Weapon Floating
Reply With Quote #77

The weapons still get stuck on the wall... good thing i have CTF mod that in dissapears in a certain X amount of time. anybody got around this?

Quote:
Originally Posted by Owyn View Post
i fixed it kekeke
how did you do it? please share.
nightstalker is offline
Crisislord
Member
Join Date: Mar 2011
Old 02-07-2012 , 16:01   Re: UT Style Weapon Floating
Reply With Quote #78

nice plugin. But i have only one issue the plugin is not working with csdm itemmode. Can you help.
or with this plugin:
http://forums.alliedmods.net/showthr...pawning+weapon


If only i know how to script!

Last edited by Crisislord; 02-08-2012 at 00:06.
Crisislord is offline
shadybg
Member
Join Date: Jun 2011
Old 03-30-2012 , 09:55   Re: UT Style Weapon Floating
Reply With Quote #79

PHP Code:
/*
*   _______     _      _  __          __
*  | _____/    | |    | | \ \   __   / /
*  | |         | |    | |  | | /  \ | |
*  | |         | |____| |  | |/ __ \| |
*  | |   ___   | ______ |  |   /  \   |
*  | |  |_  |  | |    | |  |  /    \  |
*  | |    | |  | |    | |  | |      | |
*  | |____| |  | |    | |  | |      | |
*  |_______/   |_|    |_|  \_/      \_/
*
*
*
*  Last Edited: 12-31-07
*
*  ============
*   Changelog:
*  ============
*
*  v2.0
*    -Added color to floating weapons
*
*  v1.0
*    -Initial Release
*
*/

#define VERSION    "2.0"

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <fun>

new maxplayers
new speed_pcvar
new toggle_pcvar

public plugin_init()
{
    
register_plugin("UT Style Floating Weapons",VERSION,"GHW_Chronic")

    
speed_pcvar register_cvar("FW_speed","25.0")
    
toggle_pcvar register_cvar("FW_enabled","1")

    
register_forward(FM_SetModel,"W_Model_Hook",1)
    
register_touch("weaponbox","worldspawn","touch")
    
set_task(1.0,"newgame")

    
set_task(0.1,"force_spin",0,"",0,"b")

    
maxplayers get_maxplayers()
}

public 
W_Model_Hook(ent,model[])
{
    if(
get_pcvar_num(toggle_pcvar) && pev_valid(ent))
    {
        static 
classname[32]
        
pev(ent,pev_classname,classname,31)
        if(
equali(classname,"weaponbox"))
        {
            
set_pev(ent,pev_renderfx,kRenderFxGlowShell)
            switch(
random_num(1,4))
            {
                case 
1set_pev(ent,pev_rendercolor,Float:{0.0,0.0,255.0})
                case 
2set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})
                case 
3set_pev(ent,pev_rendercolor,Float:{255.0,0.0,0.0})
                case 
4set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})
            }
            static 
Float:angles[3]
            
pev(ent,pev_angles,angles)
            
angles[0] -= 90.0
            angles
[1] += 45.0
            set_pev
(ent,pev_angles,angles)
        }
    }
}

public 
touch(weaponbox,worldspawn)
{
    if(
get_pcvar_num(toggle_pcvar) && pev_valid(weaponbox))
    {
        
        
set_pev(weaponbox,pev_movetype,MOVETYPE_FLY)
        static 
Float:origin[3]
        
pev(weaponbox,pev_origin,origin)
        
origin[2] += 30.0
        set_pev
(weaponbox,pev_origin,origin)
    }
}

public 
force_spin()
{
    if(
get_pcvar_num(toggle_pcvar))
    {
        static 
entclassname[16], Float:angles[3]
        
ent engfunc(EngFunc_FindEntityInSphere,maxplayers,Float:{0.0,0.0,0.0},4800.0)
        while(
ent)
        {
            if(
pev_valid(ent))
            {
                
pev(ent,pev_classname,classname,15)
                if(
containi(classname,"armoury")!=-|| containi(classname,"weaponbox")!=-1)
                {
                    
pev(ent,pev_angles,angles)
                    
angles[1] += get_pcvar_float(speed_pcvar) / 10.0
                    
if(angles[1]>=180.0)
                    {
                        
angles[1] -= 360.0
                    
}
                    
set_pev(ent,pev_angles,angles)
                }
            }
            
ent engfunc(EngFunc_FindEntityInSphere,ent,Float:{0.0,0.0,0.0},4800.0)
        }
    }
}

public 
newgame()
{
    if(
get_pcvar_num(toggle_pcvar))
    {
        static 
entclassname[8], Float:angles[3]
        
ent engfunc(EngFunc_FindEntityInSphere,maxplayers,Float:{0.0,0.0,0.0},4800.0)
        while(
ent)
        {
            if(
pev_valid(ent))
            {
                
pev(ent,pev_classname,classname,7)
                if(
containi(classname,"armoury")!=-1)
                {
                    
set_pev(ent,pev_renderfx,kRenderFxGlowShell)
                    switch(
random_num(1,4))
                    {
                        case 
1set_pev(ent,pev_rendercolor,Float:{0.0,0.0,255.0})
                        case 
2set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})
                        case 
3set_pev(ent,pev_rendercolor,Float:{255.0,0.0,0.0})
                        case 
4set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})
                    }
                    
pev(ent,pev_angles,angles)
                    
angles[0] -= 90.0
                    angles
[1] += 45.0
                    set_pev
(ent,pev_angles,angles)
                    
touch(ent,0)
                }
            }
            
ent engfunc(EngFunc_FindEntityInSphere,ent,Float:{0.0,0.0,0.0},4800.0)
        }
    }

Anyway this is version 2 ( v2.2 is the newest ) and works perfectly with that stuck bug into the walls.
shadybg is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 10-01-2017 , 00:20   Re: UT Style Weapon Floating
Reply With Quote #80

can anyone edit this plugin to load only on aim_ and fy_ prefixes?
tarsisd2 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 23:06.


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