Pick up a kit just by walking over it?

Ask questions, discuss ideas, get answers
Post Reply
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Re: Pick up a kit just by walking over it?

Post by anselmus »

What???? :?:
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Pick up a kit just by walking over it?

Post by Swaffy »

I am not sure if it'll work, but try changing the "pick up kit" input key to the "movement" input key.
LIke this:

Change "c_PIDrop" to "c_PIThrottle"

I don't know where you'd find the "Pick up kit" coding, but all you have to do is change those, and I believe it'll work.

I looked around to find a file where it can be done, but I think this kind of function is hard-coded into the game's engine.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Pick up a kit just by walking over it?

Post by Apache Thunder »

That won't work very well. Picking up kits won't work if you approach a kit with the pickup key already pressed. You have to let go of key and press it again. So simply walking over them won't work via this method as the player would have to momentarily stop movement and resume it again to pick up the kit.
ImageImageImage
I have cameras in your head!
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Re: Pick up a kit just by walking over it?

Post by anselmus »

Well it would be when approaching a kit on the ground, it automatically trade what you are using, similar to the "Soldier of Fortune"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Pick up a kit just by walking over it?

Post by Swaffy »

I figured it'd work since the "c_PIThrottle" keys are "PressAndHold" instead of semiautomatic.
So because it would be automatic, your soldier would be trying to pick up weapon kits thousands of times per minute as he runs.

I can set my jet-pack fo fire off on c_PIThrottle and it would thrust me constantly as I run forward or backward.
[Which would be hilarious to see on bots.]
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Re: Pick up a kit just by walking over it?

Post by anselmus »

The intention was not to "Co-op or single-player", but to possible alternatives.... 8-)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Pick up a kit just by walking over it?

Post by Swaffy »

The bots were just something that was running through my mind at the time.
Your idea struck an idea that I want to play around with.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Re: Pick up a kit just by walking over it?

Post by anselmus »

I enjoy making custom maps, including styles Counter_Strike to Bf42, and it would be nice if there was the ability to automatically pick up the guns.
I Have redrawn the map Fy Pool Day, help a lot.
I had to choose different option, was nice :lol:
Post Reply