Raised This Month: $ Target: $400
 0% 

Remove health and guns from maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hackerpcs
Member
Join Date: Jul 2012
Location: Greece
Old 11-23-2014 , 16:42   Remove health and guns from maps
Reply With Quote #1

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.
Hackerpcs is offline
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 11-24-2014 , 04:36   Re: Remove health and guns from maps
Reply With Quote #2

Just use this https://forums.alliedmods.net/showthread.php?t=74680
__________________
Learning Pawn [3% Complete!]

Last edited by Akshat; 11-24-2014 at 04:36.
Akshat is offline
Send a message via Skype™ to Akshat
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-24-2014 , 10:18   Re: Remove health and guns from maps
Reply With Quote #3

To remove the guns from the ground loop all item_armoury entities and use remove_entity on every index.
__________________
HamletEagle is offline
Hackerpcs
Member
Join Date: Jul 2012
Location: Greece
Old 11-26-2014 , 01:40   Re: Remove health and guns from maps
Reply With Quote #4

Quote:
Originally Posted by Akshat View Post
They are invisible, I can't use this.

Quote:
Originally Posted by HamletEagle View Post
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.
Hackerpcs is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 11-26-2014 , 04:13   Re: Remove health and guns from maps
Reply With Quote #5

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
__________________
In Flames we trust!
Nextra is offline
Hackerpcs
Member
Join Date: Jul 2012
Location: Greece
Old 11-26-2014 , 05:32   Re: Remove health and guns from maps
Reply With Quote #6

Quote:
Originally Posted by Nextra View Post
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.
Hackerpcs 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 20:45.


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