Raised This Month: $ Target: $400
 0% 

[CS:GO] New gun, new class?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 02-13-2014 , 03:23   [CS:GO] New gun, new class?
Reply With Quote #1

Yesterday CS:GO update added a new pistol, the CZ75-Auto

However after updating and running a sm_dump_classes, there seems to be no classname approaching the pistol name. There is weapon_p228 that I wasn't aware of, but it seems quite an inadequate name...

Does someone know the CZ75 class name?
h3bus is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-13-2014 , 04:03   Re: [CS:GO] New gun, new class?
Reply With Quote #2

I think they use multiple gun "profile" in one same weapon entity.
If You can code little plugin, add command listener for buy command.
You see output something
buy p228 3
Last number is somekind weapon profile for entity
Bacardi is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 02-13-2014 , 04:24   Re: [CS:GO] New gun, new class?
Reply With Quote #3

Just check the script folder for weapon classes.
weapon_cz75a
Maxximou5 is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 02-13-2014 , 04:26   Re: [CS:GO] New gun, new class?
Reply With Quote #4

Yeah I've always wondered what those numbers meant.

This would fit in the mysterious iSubType of
PHP Code:
native GivePlayerItem(client, const String:item[], iSubType=0); 
This would be the first weapon that need this!

EDIT: Thanks Maxximous!
Wonder why sm_dump_classes did not list it

EDIT2: It's not in my script folder anyway :/ and steamcmd says that app is up to date.

Last edited by h3bus; 02-13-2014 at 04:31.
h3bus is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 02-14-2014 , 04:12   Re: [CS:GO] New gun, new class?
Reply With Quote #5

Quote:
Originally Posted by h3bus View Post
EDIT2: It's not in my script folder anyway :/ and steamcmd says that app is up to date.
To clarify, I found it under:
Code:
..\Counter-Strike Global Offensive\csgo\scripts\items\items_game.txt
I usually check there for anything new regarding models, weapons, classes, etc.
Maxximou5 is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 02-14-2014 , 04:58   Re: [CS:GO] New gun, new class?
Reply With Quote #6

Nice tip, thanks!
h3bus is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-14-2014 , 09:48   Re: [CS:GO] New gun, new class?
Reply With Quote #7

Quote:
Originally Posted by h3bus View Post
Yeah I've always wondered what those numbers meant.

This would fit in the mysterious iSubType of
PHP Code:
native GivePlayerItem(client, const String:item[], iSubType=0); 
This would be the first weapon that need this!

EDIT: Thanks Maxximous!
Wonder why sm_dump_classes did not list it

EDIT2: It's not in my script folder anyway :/ and steamcmd says that app is up to date.
GivePlayerItem won't help you in this case.

If CS:GO does start introducing items that share the same classname, you're going to need an extension similar to TF2's TF2Items to spawn them. As it is, the CEconItem system is already in place for CS:GO, which is why it has items_game.txt in the first place.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 02-14-2014 at 09:49.
Powerlord 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 05:21.


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