Blockland Forums > Modification Help

Activating with a Weapon

Pages: (1/7) > >>

Killbunny:

Is there a way to be able to Activate while holding a weapon? And you could bind a key to it (like +use in Source Engine). Please help me out with this, I think it would be really convenient.

phflack:

so you could click and shoot at the same time, or with any tool out you could click instead of shoot?

Headcrab Zombie:

I guess you could make a bind to unequip weapon, click, and then reequip weapon, but that could mess up with weapons that have some sort of onMount animation or warmup before being usable.

With a clientside bind and serverside script, you should be able to do it pretty easily, as long at Player::ActivateStuff doesn't have a check for equipped weapons, it should work.

Killbunny:

So wait, how do I set Player::ActivateStuff to work with weapons?

Headcrab Zombie:

No, you don't need to do anything with ActivateStuff, just make a serverCmd that calls it, and then a bind to the serverCmd.

Pages: (1/7) > >>

Go to full version