Raised This Month: $ Target: $400
 0% 

UT Style Weapon Floating


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 08-01-2018 , 15:45   Re: UT Style Weapon Floating
Reply With Quote #1

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:04.


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