Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Simple way to strip map weapons from player

A Tutorial for Counter-Strike: Global Offensive

Members see zero ads. Membership is 100% free

How to strip weapons from a player based on team or targetname

Overview

This tutorial is going to show you how to strip a weapon from a player who isn't supposed to pick it up.

This tutorial was spawned as I could not find any decent information on how to weapon strip players for my Marines Vs Predators map prefab, so I decided to play around a bit.

This only works on map weapons (weapon_ entities that you place in the map yourself). It will also work with weapon spawners if you add the output on the weapon being spawned.


How to do it

You want to create the following entities. I will use my naming structure in this tutorial but you can use your own if you like.

  • (Name: No name) Weapon entity (like weapon_m4a1)
  • (Name: TWeaponFilter) filter_activator_team (or filter_activator_name if you want it limited to a Targetname)
  • (Name: KnifeSpawner) game_player_equip (Flags: Use Only and Strip All Weapons First ticked)

I will go through each entity individually.


Weapon_m4a1

In the Outputs tab, add the following:
OnPlayerPickup
TWeaponFilter
TestActivator


No adjustments to the Class Info required.
Do this for all weapons that you want tested.


filter_activator_team

In the Class Info Tab:
- Filter Team Number: Terrorists
- Filter Mode: Allow entities that match criteria

In the Outputs tab, add the following:
OnPass
KnifeSpawner
Use


game_player_equip

In the Class Info Tab:
- Turn smart edit off and click add. In Key add weapon_knife and in value, add 1.

In the Flags Tab:
- Tick Use Only and Strip All Weapons First.


Summary

What happens is: when a player picks up the specified weapon, it will use the filter to test the player, if they are a terrorist, it will fire the output OnPass, using the game_player_equip to strip the weapons and give the player a knife (or nothing).


Comments

Sign up to access this!

No comments yet

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Studio

Sign up to access this!

Credits

Key Authors
im_the_new_guy avatar
im_the_new_guy username pic Joined 11y ago
Offline
15,789 points Ranked 348th
24 medals 2 legendary 3 rare
  • Submitted 50 Maps Medal icon
  • 10 years a member Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Submitted 20 Maps Medal icon
  • Mapper of the Month, November 2013 Medal icon
Creator

Submitter

im_the_new_guy avatar
im_the_new_guy username pic Joined 11y ago
Offline
15,789 points Ranked 348th
24 medals 2 legendary 3 rare
  • Submitted 50 Maps Medal icon
  • 10 years a member Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Submitted 20 Maps Medal icon
  • Mapper of the Month, November 2013 Medal icon
im_the_new_guy avatar
im_the_new_guy

Creator
  • Paypal Donate
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 0
  • remove_red_eye 3.2k
  • access_time 4y
  • access_time 4y

More from Submitter

menu

More Mapping Tutorials

bcp.crwdcntrl.net tracking pixel