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

UT Style Weapon Floating


Post New Thread Reply   
 
Thread Tools Display Modes
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 10-01-2017 , 07:16   Re: UT Style Weapon Floating
Reply With Quote #81

Quote:
Originally Posted by tarsisd2 View Post
can anyone edit this plugin to load only on aim_ and fy_ prefixes?
PHP Code:
#include <amxmodx>

new const g_MapPrefixes[][] =
{
    
"aim_",
    
"fy_"
}

public 
plugin_init()
{
    new 
szMapName[32]
    
get_mapname(szMapNamecharsmax(szMapName))
    
    for(new 
0sizeof(g_MapPrefixes); i++)
    {
        if(
containi(szMapNameg_MapPrefixes[i]) == -1)
        {
            
set_fail_state("This plugin can't run in this map")
            break;
        }
    }

Attached Files
File Type: sma Get Plugin or Get Source (GHW_Floating_Weapons.sma - 577 views - 3.2 KB)
__________________

Last edited by Ayman Khaled; 10-02-2017 at 15:48.
Ayman Khaled is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-01-2017 , 08:25   Re: UT Style Weapon Floating
Reply With Quote #82

PHP Code:
if(containi(szMapNameg_MapPrefixes[i]) == -1
Check the wiki.
__________________
HamletEagle is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-01-2017 , 13:52   Re: UT Style Weapon Floating
Reply With Quote #83

Quote:
Originally Posted by tarsisd2 View Post
can anyone edit this plugin to load only on aim_ and fy_ prefixes?
No need to edit the plugin. just read this.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
TheSpaniard
Senior Member
Join Date: Jul 2017
Location: Hell
Old 10-02-2017 , 10:03   Re: UT Style Weapon Floating
Reply With Quote #84

Found a bug if a bomb or weapon is by mistake dropped beside a wall or a fixed entity it gets stuck there and cant be retrieved. Can somebody help??
__________________
And I Am Back.
TheSpaniard is offline
Residays
Junior Member
Join Date: Oct 2017
Location: Venezuela
Old 11-04-2017 , 12:47   Re: UT Style Weapon Floating
Reply With Quote #85

Quote:
Originally Posted by TheSpaniard View Post
Found a bug if a bomb or weapon is by mistake dropped beside a wall or a fixed entity it gets stuck there and cant be retrieved. Can somebody help??
Can confirm this but it seems to be a plugin fault, our only hope is that somebody updates it.
__________________
Residays is offline
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 08-01-2018 , 15:45   Re: UT Style Weapon Floating
Reply With Quote #86

Is there any way to prevent the weapons and c4 backpack to fall inside the walls?
Backpack sometimes get lost from radar even if it is still inside the playable area.

So I came up with this inside float_weapon(ent) yet:
PHP Code:
        new model[32]
        
pev(entpev_modelmodelcharsmax(model))
        if ( 
equalimodel "models/w_backpack.mdl" ) )
            
set_pev(ent,pev_movetype,MOVETYPE_TOSS)
        else
            
set_pev(ent,pev_movetype,MOVETYPE_NOCLIP
That causes it won't spin, but fly atleast.
RaZ_HU 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 05:57.


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