AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove health and guns from maps (https://forums.alliedmods.net/showthread.php?t=252005)

Hackerpcs 11-23-2014 16:42

Remove health and guns from maps
 
I want to remove the following things from these maps:

-The health given by map in deathrun_dojo, deathrun_forest.
In dojo it is where CT finishes, left to teleport where it sents him to T, where you must duck-jump to reach it.
In forest it's where CT finishes, above the green teleport where CT is sent to T, where the awp is.


-The guns given by map in deathrun_dojo, deathrun_cartoon.
In dojo it's the same as above.
In cartoon it's in the end of surf, near the red teleport where CT is sent to T.

Thanks in advance.

Akshat 11-24-2014 04:36

Re: Remove health and guns from maps
 
Just use this https://forums.alliedmods.net/showthread.php?t=74680

HamletEagle 11-24-2014 10:18

Re: Remove health and guns from maps
 
To remove the guns from the ground loop all item_armoury entities and use remove_entity on every index.

Hackerpcs 11-26-2014 01:40

Re: Remove health and guns from maps
 
Quote:

Originally Posted by Akshat (Post 2227712)

They are invisible, I can't use this.

Quote:

Originally Posted by HamletEagle (Post 2227818)
To remove the guns from the ground loop all item_armoury entities and use remove_entity on every index.

The guns are given, they are not on the ground.

Nextra 11-26-2014 04:13

Re: Remove health and guns from maps
 
The "game_player_equip" entities are responsible for equipping players on spawn, remove those and the player will not be equipped: https://github.com/Arkshine/CSSDK/bl...rules.cpp#L645

Hackerpcs 11-26-2014 05:32

Re: Remove health and guns from maps
 
Quote:

Originally Posted by Nextra (Post 2228359)
The "game_player_equip" entities are responsible for equipping players on spawn, remove those and the player will not be equipped: https://github.com/Arkshine/CSSDK/bl...rules.cpp#L645

The weapons aren't given on player spawn, they are given when you go to a certain area (described in 1st post) in the map and are not on the ground. My plugin uses this to block weapons on ground
PHP Code:

//plugin_init
/* ************ Weapon pickup block - By Exolent ********** */
    
RegisterHamHam_Touch"armoury_entity""FwdHamPlayerPickup" );
    
RegisterHamHam_Touch"weaponbox""FwdHamPlayerPickup" );

/* ******************************* Block weapon pickup - By Exolent ******************************** */
public FwdHamPlayerPickupiEntityid )
{
    return ( 
<= id <= g_iMaxPlayers && is_user_alive(id) ) ? HAM_SUPERCEDE HAM_IGNORED


So I tried this

PHP Code:

//plugin_init
    
RegisterHamHam_Touch"game_player_equip""gm_pl_eq" );

public 
gm_pl_eqiEntityid )
{
    return ( 
<= id <= g_iMaxPlayers && is_user_alive(id) ) ? HAM_SUPERCEDE HAM_IGNORED


But it doesn't work, weapons are still equipped in said spots.


All times are GMT -4. The time now is 17:32.

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