Raised This Month: $32 Target: $400
 8% 

[CS:GO] Change Start Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 03-02-2013 , 17:41   [CS:GO] Change Start Weapon
Reply With Quote #1

Hi,

I need a plugin to change the spawn weapon on a deagle map.

I want that the players on my aim server get a p250 as spawn weapon and not a deagle. Is it possible?

mariozankl
mariozankl is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-02-2013 , 17:52   Re: [CS:GO] Change Start Weapon
Reply With Quote #2

Use cvars ?
Code:
] find mp_ct_default
"mp_ct_default_grenades" = "" client replicated                                  - The default grenades that the CTs will spawn with.  To give multiple grenades, s
"mp_ct_default_melee" = "weapon_knife" client replicated                         - The default melee weapon that the CTs will spawn with.  Even if this is blank, a
"mp_ct_default_primary" = "" client replicated                                   - The default primary (rifle) weapon that the CTs will spawn with
"mp_ct_default_secondary" = "weapon_hkp2000" client replicated                   - The default secondary (pistol) weapon that the CTs will spawn with
] find mp_t_default
"mp_t_default_grenades" = "" client replicated                                   - The default grenades that the Ts will spawn with.  To give multiple grenades, se
"mp_t_default_melee" = "weapon_knife" client replicated                          - The default melee weapon that the Ts will spawn with
"mp_t_default_primary" = "" client replicated                                    - The default primary (rifle) weapon that the Ts will spawn with
"mp_t_default_secondary" = "weapon_glock" client replicated                      - The default secondary (pistol) weapon that the Ts will spawn with
__________________
Do not Private Message @me
Bacardi is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 03-02-2013 , 18:49   Re: [CS:GO] Change Start Weapon
Reply With Quote #3

The cvars don't work. Maybe the Map overrides the cvars?
mariozankl is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-02-2013 , 20:03   Re: [CS:GO] Change Start Weapon
Reply With Quote #4

when the map starts, are the CVars still set to what you have them set to? Where are you setting them to begin with?
__________________
View my Plugins | Donate
TnTSCS is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-03-2013 , 04:33   Re: [CS:GO] Change Start Weapon
Reply With Quote #5

Those cvars what I posted, not affect if this entity game_player_equip exist in map.
- It would be great if the map builders do not use this anymore in this game.

Anyway, here plugin code. SDKhooks required.
This will remove game_player_equip entity from every map. Remember use cvars this forward...
Spoiler

Unless you want load/unload this plugin from ...addons/sourcemod/plugins/disabled/ -folder with map configs on specific maps.
----------------------------
MetaMod:Source plugin Stripper is usefull also. https://forums.alliedmods.net/showthread.php?t=39439
You can edit that entity settings or remove it on certain maps.
Here edited version.
...addons\stripper\maps\aim_deagle_crewholic.cfg



Either way
__________________
Do not Private Message @me

Last edited by Bacardi; 03-03-2013 at 04:34.
Bacardi is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 03-03-2013 , 10:43   Re: [CS:GO] Change Start Weapon
Reply With Quote #6

@Bacardi

Works perfect.

Thanks for Help.
mariozankl is offline
RCZ
New Member
Join Date: Dec 2013
Old 12-09-2013 , 12:20   Re: [CS:GO] Change Start Weapon
Reply With Quote #7

Hello,

I was hoping to get more help in this area.

I rent a CSGO server from NFO, and have both metamod and sourcemod installed.

I play a 24/7 scoutzknivez map but the map itself must have the scout baked in.

What I want to accomplish is the player to have a scout but only 1 full magazine.
RCZ 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 17:42.


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