Raised This Month: $51 Target: $400
 12% 

[L4D2] Problem with CS Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 01-20-2017 , 17:25   [L4D2] Problem with CS Weapon
Reply With Quote #1

Hi guys.
I have problem with CS weapon entities
For example: player keep weapon_smg_mp5
When player fire console output:
Code:
Unhandled CStrike EjectBrass Effect
How fix this ?
may be mission particle/effect ? But what is the particle/effect ?
Vit_amin is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 01-21-2017 , 07:39   Re: [L4D2] Problem with CS Weapon
Reply With Quote #2

Precache the hidden CS:S Weapons first and make them spawn naturally in campaigns like the other guns.
cravenge is offline
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 01-21-2017 , 08:00   Re: [L4D2] Problem with CS Weapon
Reply With Quote #3

Quote:
Originally Posted by cravenge View Post
Precache the hidden CS:S Weapons first and make them spawn naturally in campaigns like the other guns.
Weapon is Precached by Vscripts script:
This code made weapon worked and weapon take damage (without campaign restart)
Code:
 /**
  * Precaches the CS:S weapons, making them usable
  *
  * @authors Rayman1103
  */
 function Precache()
 {
  local szWeaponName = 
  [
   "weapon_rifle_sg552",
   "weapon_smg_mp5",
   "weapon_sniper_awp",
   "weapon_sniper_scout"
  ]
  
 foreach(szWeaponsEntity in szWeaponName)
  {
   PrecacheEntityFromTable({classname = szWeaponsEntity})
  }
 }
But this EjectBrass effect ... (i don't know what is effect)

Last edited by Vit_amin; 01-21-2017 at 08:00.
Vit_amin 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 06:22.


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