#Problem with source sdk base 2013

1 messages · Page 1 of 1 (latest)

radiant wing
#

I created a new melee weapon. I want to make swing like in bow in tf2. How can I make this?

thorn ferry
#

Swing? Bow's shoot arrows?

radiant wing
#

in the bow, when you hold down the LMB, then the shot is strengthened
I want it to be the same, only that there is an increase not in the shot, but in the impact force

thorn ferry
#

Does your melee weapons work in game already?

radiant wing
#

yes, it works. It works just like crowbar

thorn ferry
#

Ah, a "power charged" attack.

radiant wing
#

I can show you full source code of my weapon, but it same as crowbar

thorn ferry
#

Nah, it's ok

#

Damn. This is beyond my knowledge. I'm trying to google it too, but coming up empty. The best thing I can think of is to code it so the weapon does not attack on a click, but a hold-release.

radiant wing
#

my main problem is that i can't do a key hold check

thorn ferry
#

What's preventing this?

radiant wing
#

I don't know how to implement it

thorn ferry
#

Ah. I understand. I don't know either unfortunatly

radiant wing
#

who knows?

thorn ferry
#

There is TF2 code leak, so maybe you can get lucky and preview the code from that?

radiant wing
#

I looked but I don't understand anything

thorn ferry
#

#programming might be able to help

radiant wing