AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [CS] c4 drop (weapon switch disable) (https://forums.alliedmods.net/showthread.php?t=206526)

alonelive 01-23-2013 13:46

[CS] c4 drop (weapon switch disable)
 
Hello once more :)
When use engclient drop weapon_c4, player have a weapon switch (pistol to primary weapon or prim. weapon to pistol).
I see the code, which disable this switching. Help me to find them :) I tried "c4 drop switch", "switch bug remove" and etc, but can't find this.
but this code on the forum. I saw him early..

Xalus 01-23-2013 13:52

Re: [CS] c4 drop (weapon switch disable)
 
So you mean when yo do that code, it switch to C4 to drop it ?

There is a stock Ham... that removes a weapon from a player

alonelive 01-23-2013 14:18

Re: [CS] c4 drop (weapon switch disable)
 
Quote:

Originally Posted by Xalus (Post 1878794)
So you mean when yo do that code, it switch to C4 to drop it ?

There is a stock Ham... that removes a weapon from a player

Черт подери..
NO!
A terror. he has a AK-47 as primary and Deagle as secondary. Also he has C4..
His current weapon is AK-47.

when use engclient_cmd(id,"drop", weapon_c4) a PRIMARY AND SECONDARY weapons of player has been switched. I need a code to disable switching.

alonelive 01-23-2013 14:23

Re: [CS] c4 drop (weapon switch disable)
 
Tomorrow i want to try use ham_strip. Topic is temporary closed :)

alonelive 01-24-2013 01:03

Re: [CS] c4 drop (weapon switch disable)
 
HAM_STRIP does not work correctly in this case!


PHP Code:

register_logevent"LogEvent_Got_Bomb"3"2=Spawned_With_The_Bomb" )
register_logevent"LogEvent_Got_Bomb"3"2=Got_The_Bomb" )

//c4 remove
public LogEvent_Got_Bombid)
{
    new 
iFwd register_forward(FM_SetModel"SetModel"1)
    
engclient_cmd(0"drop""weapon_c4")
    
//i tried to use ham strip instead engclient_cmd drop - not works correctly.
    
unregister_forward(FM_SetModeliFwd1)
}

public 
SetModelentmodel[] )
{
    if( 
equal(model"models/w_backpack.mdl") )
    {
        
call_think(ent)
        
message_begin(MSG_ALLgmsgBombPickup)
        
message_end()
    }



Bos93 01-24-2013 06:47

Re: [CS] c4 drop (weapon switch disable)
 
block lastinv


All times are GMT -4. The time now is 20:39.

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