Raised This Month: $37 Target: $400
 9% 

CSO Costumes


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Smilex_Gamer
Member
Join Date: Apr 2017
Location: Portugal
Old 01-11-2019 , 19:59   CSO Costumes
Reply With Quote #1

Hi again! Today i'm going to show a project that I created last week to improve an old thread in this forums so now I present you...

CSO Costumes Version 1.0

Features:
  • /costumes - Opens the main menu
  • /inventory - Opens a menu where you'll find your bought costumes
  • /shop - Opens a menu where you can buy costumes
  • /deactivate - Deactivates all your activated costumes
  • /cash - See how much cash do you have
  • Kill players to earn cash (Costumizable by cvar)
  • 60 Player Models
  • Many Costumes (All in 6 Models) (Head, Back and Pelvis)
  • You can see a preview of all costumes
  • To add a new costume, simply follow the way its done (it has some comments in the code explaining it)

TODO List:
  • Add a saving system (Nvault or MySQL)
  • Create a file to add new costumes easier
  • Add Multi-Lingual Support

Credits:
  • csaba1998 - Make Costume Code (https://forums.alliedmods.net/showthread.php?t=223437)
  • CS BTE TEAM - Export Rose Phoenix and Costumes (Head, Back and Pelvis) from Counter-Strike: Online
  • Smilex_Gamer - Export all other player models from Counter-Strike: Online (Thanks to Nar Extractor CSO 2.0) and making this plugin

Resources:
Attached Files
File Type: sma Get Plugin or Get Source (costumes.sma - 24 views - 36.1 KB)

Last edited by Smilex_Gamer; 01-12-2019 at 17:32.
Smilex_Gamer is offline
Send a message via Skype™ to Smilex_Gamer
eat1k
Member
Join Date: Apr 2018
Old 01-12-2019 , 06:40   Re: CSO Costumes
Reply With Quote #2

I think it would be greater if you would do a config for all this, where you can specify the category (head, pelvis...), name, price, submodel. Also, it would be great to add a CVar that disables categories, i.e., you add costumes/hats/etc... without categories to the menu.
__________________
eat1k is offline
Smilex_Gamer
Member
Join Date: Apr 2017
Location: Portugal
Old 01-12-2019 , 09:32   Re: CSO Costumes
Reply With Quote #3

Quote:
Originally Posted by eat1k View Post
I think it would be greater if you would do a config for all this, where you can specify the category (head, pelvis...), name, price, submodel. Also, it would be great to add a CVar that disables categories, i.e., you add costumes/hats/etc... without categories to the menu.
Sorry could you be more specific? I didn't quite understand it.
Smilex_Gamer is offline
Send a message via Skype™ to Smilex_Gamer
eat1k
Member
Join Date: Apr 2018
Old 01-12-2019 , 10:23   Re: CSO Costumes
Reply With Quote #4

I mean remove all the hardcode from plugin so people will be able to add costumes from config file (for example /amxmodx/configs/costumes.ini". Something like this:
PHP Code:
"category number" "name" "price" "submodel" // that will be number 1 in the menu of the specified category
"category number" "name" "price" "submodel" // that will be number 2 in the menu of the specified category (if the first was in category 1 and this one too, so it will be number 2) 
Regarding the CVar, if we disable the categories so it will be something like this:
PHP Code:
"name" "price" "submodel" // that will be number 1 in the main menu
"name" "price" "submodel" // that will be number 2 in the main menu 
To sum up, remove the hardcode:
PHP Code:
new const Costumes_SkinCT[][Vars] =
new const 
Costumes_SkinTR[][Vars] =
new const 
CostumeModels[][] =
new const 
Costumes_Head[][Vars2] =
new const 
Costumes_Back[][Vars2] =
new const 
Costumes_Pelvis[][Vars2] = 
__________________

Last edited by eat1k; 01-12-2019 at 10:23.
eat1k is offline
Smilex_Gamer
Member
Join Date: Apr 2017
Location: Portugal
Old 01-12-2019 , 11:21   Re: CSO Costumes
Reply With Quote #5

That's already in the TODO list but thanks. I gotta test that.
Smilex_Gamer is offline
Send a message via Skype™ to Smilex_Gamer
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 01-13-2019 , 07:32   Re: CSO Costumes
Reply With Quote #6

That's a bit OP. 80MB+ it's way too much, nor the idea is great.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
Smilex_Gamer
Member
Join Date: Apr 2017
Location: Portugal
Old 01-13-2019 , 09:01   Re: CSO Costumes
Reply With Quote #7

Quote:
Originally Posted by Relaxing View Post
That's a bit OP. 80MB+ it's way too much, nor the idea is great.
Welp if someone could put all player models in one model it would reduce the size but I don't know how
Still it's something for fun stuff, it isn't a masterpiece
Smilex_Gamer is offline
Send a message via Skype™ to Smilex_Gamer
ArslanLatif20
New Member
Join Date: Jan 2019
Old Yesterday , 15:49   Re: CSO Costumes
Reply With Quote #8

Costumes serve with the only purpose as player decoration, which means they do not affect in any way the hit-boxes of the player. For each different costume sets, certain parts are required.For more Details.
__________________
ArslanLatif20 is offline
Smilex_Gamer
Member
Join Date: Apr 2017
Location: Portugal
Old Yesterday , 20:57   Re: CSO Costumes
Reply With Quote #9

Quote:
Originally Posted by ArslanLatif20 View Post
Costumes serve with the only purpose as player decoration, which means they do not affect in any way the hit-boxes of the player. For each different costume sets, certain parts are required.For more Details.
Yeah just for costumization..
Smilex_Gamer is offline
Send a message via Skype™ to Smilex_Gamer
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old Today , 05:15   Re: CSO Costumes
Reply With Quote #10

some screenshots would be cool
tarsisd2 is offline
Reply


Thread Tools
Display Modes

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 19:41.


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