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

Knife Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 04-14-2020 , 17:00   Knife Menu
Reply With Quote #1

Hi! I wanted to ask if possible, make this selection menu, but for the different superhero knifes, based on the fact that if they have the heroes they can choose their model v_knife

Because the latest knife model is always put on the plugins list

https://forums.alliedmods.net/showthread.php?t=293632 something like this??

Last edited by Arje; 04-14-2020 at 17:01.
Arje is offline
heliumdream
Senior Member
Join Date: Aug 2006
Old 09-23-2020 , 13:48   Re: Knife Menu
Reply With Quote #2

You can probably use the Plugin you link to:
Knife Models [XP System & Skills Support]
https://forums.alliedmods.net/showthread.php?t=293632

It looks good!

I used the Individual Weapon Model plugin to let users control their weapon and knife skins. It's not got a menu, it's a bit of a clunky solution. But the way skins stack in sh ends up wonky anyway, it's better than nothing!
https://forums.alliedmods.net/showthread.php?t=96777

I heavily modified my IWM plugin to know about superhero levels; so players can only use 'unlocked' skins, and made other improvements:
https://forums.alliedmods.net/showpo...2&postcount=51

For player skins I used the CS User Model Menu:
https://forums.alliedmods.net/showth...t=8631&page=10

It's very good!

I heavily modified my version of the CSUMM to support superheroes:
https://forums.alliedmods.net/showpo...&postcount=107

You can modify the Knife Model Menu plugin to support superheroes, but it will be a coding challenge!
You can look at how I modify the CSUMM and IWM to achieve this.
__________________
heliumdream is offline
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 02-24-2022 , 12:49   Re: Knife Menu
Reply With Quote #3

Thanks for the suggestions, but none of them worked as I wanted, in the end I wrote this code that does what I want which is: if I have such a power I can select his knife or change to another power that he also has, it works based on whether he has such a power or not, and not by level like the ones you suggested but thanks they guided me to do it


If someone wants to use it, they have to know how to use the code, and basically to achieve the function sh_get_hero_id("Chucky"); Or another, you have to write the chucky script with the new forms this is quite easy to do just look for the Jelle tutorial its very simple

if you understand how to do this you can apply in the code

* clarification for this to work well you have to put the plugin at the end of the list of plugins-shero.ini, so no model is superimposed
Attached Files
File Type: sma Get Plugin or Get Source (sh_aa_fakamenu2.sma - 125 views - 12.3 KB)

Last edited by Arje; 02-24-2022 at 12:52. Reason: edit * clarification
Arje is offline
heliumdream
Senior Member
Join Date: Aug 2006
Old 02-26-2022 , 11:06   Re: Knife Menu
Reply With Quote #4

Not perfectly sure it would help, but someone did figure out a method of detecting which 'heroes' are in use without having to further modify individual heroes.

Vittu's last released of Blade:
https://forums.alliedmods.net/showth...t=30090&page=3

is sh_get_hero_id("hero") native? or did you code that? i didnt recognize it off the top of my head.
__________________
heliumdream is offline
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 02-26-2022 , 18:03   Re: Knife Menu
Reply With Quote #5

Quote:
Originally Posted by heliumdream View Post
Not perfectly sure it would help, but someone did figure out a method of detecting which 'heroes' are in use without having to further modify individual heroes.

Vittu's last released of Blade:
https://forums.alliedmods.net/showth...t=30090&page=3

is sh_get_hero_id("hero") native? or did you code that? i didnt recognize it off the top of my head.
sh_get_hero_id("hero") is native, is using it in blade, This code is a good way to gather a group of heroes, but my me knife menu, I needed to recognize them individually, because each model was specific to each hero

that's why I saw this g-dog code and applied it, it can be applied to any hero, and put conditions in a simple way, the only thing as I said is that you have to write the code of the heroes involved with the new forms, which is very simple follow the example of the heroes from the superheromod1.2.0 or Jelle Tutorial file https://forums.alliedmods.net/showth...hero_id&page=2
Arje 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 17:21.


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