#Looking for a way to give player a knife subclass from a "Pressed Button"

1 messages · Page 1 of 1 (latest)

noble epoch
#

Looking for a way to give player a knife subclass from a "Pressed Button", without using servercommand entitie so only 1 player gets the subclassed knife

For meaning subclass_change weapon_knife 507 gives a karambit knife.

#

Also tried:

  • Using game_player_equip but seems impossible to give it a subclass to weapon_knife
  • Using point_clientcommand but subclass_change is a protected FCVAR.
sturdy spear
#

u can do something like this for weapon_knife

#

credits to angel

noble epoch
#

bro

sturdy spear
#

not sure if u can do it with game player equip etc

noble epoch
#

angel is an angel

#

will try it

sturdy spear
#

he is very smart

noble epoch
#

just need to add subclass_id to it?

sturdy spear
#

yep i think so

noble epoch
#

👌

#

Just asking other thing @sturdy spear

#

how hard is to get to 2GB limit on workshop? looking to create a coop map.. is at 800mb atm but i kinda can clean it good..still

sturdy spear
#

if ur hitting 2gb without making a lot of custom assets ur doing something very wrong

noble epoch
#

nah im using custom thats probably why.. 😉

#

but not using all of them on the map thats why i tought i could clear it a bit out xd

#

@sturdy spear is there a way i can make the weapon_knife entitie always stay there after a player picked it up? instead of just giving one?

sturdy spear
#

u can spawn them dynamically when press button

noble epoch
#

but with subclass_id?

sturdy spear
#

think so yeah

noble epoch
#

i cant find a way tho

sturdy spear
#

if u make point_template with the weapon_knife inside

noble epoch
#

oh

#

let me try it then

#

never used point_template before..

sturdy spear
#

me either

#

u should google it

#

its same as source1 i think

noble epoch
#

never used it in source1 x-x

#

in source1 weapon_x if constrained would stay there.. xD

#

Ok found a way

#

Make a point_template, place the entitie of the weapon_knife on teamplate 1

#

now on weapon_knife entitie go to outputs and do this

#

for OnPlayerPickup and OnPlayerUse

#

🙂

#

@sturdy spear Now im missing a way to remove the current knife from the player ._ .