Drum barrels to destroy and pickup & throw

ABK

Well-known member
Im trying to figure out how to implements this, anyone tried that before? I currently have separate drum for picking up and separate as obstacle to destroy but i would like to have 2 in one, so you can break it if you hit it but if youre very close to it then you can pick it up and throw or walk with it( by changing weapon).
 
I know that but its about giving player weapon when he picks it up and you cant hit weapon items, their bbox serves as collision for picking up weapon.
I want to hit the barrel when im far and pick it up when im very close.
How it works in your mod? You can pick it up and walk with it ? Is it grabwalk animation or separate weapon ?
 
For simplicity I would use a range script that sets the pickup/attack on proximity.

You could force the character to attack as normal if they aren't right on top of it (thus overriding the engine's weapon pickup) and allow the pickup as normal when they're close enough.You can also not bother making it a weapon pickup, and instead script the to the animation/weapon switch manually if they ARE on right on top of it.

Either way will work, but I'd probably go with the later as it's likely easier and more versatile.

DC
 
I don't understand everything, but seems very interesting.
This very common feature in various kind of games seems a little hard to code.
But nothing is impossible.
 
Bwwd, I have it on my mod. you can pick obstacles without using weapons.
They can pickup, walk with then, jump with them, throw then while are on ground or even on the air.
Requires some follow anims and some code, but its easy to do.

I will send you when I can.
 
Back
Top Bottom