Author Topic: Bots "Picking up" Players  (Read 1110 times)

Is it possible to make a bot that will "pick up" a player and then drop it somewhere? If anyone here knows the Terrorist Mod, when you are a terrorist you can pick up civilian bots. This is like that, only reversed.
There could be a mount point where you go to when you are picked up by the bot.


Great!

So, can someone try to make a script that would allow the bot to pick someone up?

EDIT: Well, you would need the model to make a script like that...
At least show me the general idea on how to do this.

I would make the bug fire a raycast so if there within ~.5 units of the player, then mount it to the bug.  You'd probably want to make animations for it.

Yeah, otherwise it would probably just crash.
Now how would you get it to drop you at a certain place?

Yeah, otherwise it would probably just crash.
Now how would you get it to drop you at a certain place?
I would mark off a zone in the nest for it to go to (like it wants to attack it) and make sure it gets there, you can make it play an animation like dropping the person off and unmount them.

Here's my thoughts.

Since the ant/termite/wasp are all normal bug zombies, in the normal stage they just attack regularly.
The wasp has an attack in which it picks the player up and drops them. The script for this wasp's attack should have it so the spot where the player lands is random.

In the "Special Mode" each nest brick that is placed spawns several of the bug that matches the nest. About five will go out and attempt to pick up the players, then bring them into the nest. If the player tries to escape inside of the nest, the rest of the bugs will attack.

So, yeah. It's pretty complicated, we'd need some advanced scripters to make this part possible.

EDIT: Oh and the bugs spawned in the Special Mode are limited to that gamemode. They are different from the regular ant/termite/wasp.

Well, I can't help much.  I can tell your scripters ways to do things, but I'm working on other things atm.

Sure, that's fine. This probably isn't going to get done anytime soon, but it would be great if you could help sometime.


You will need to use the mountObject function.

%bot.mountObject(%object, $backSlot);

That will mount %object on the back of the bot (More like the neck though), I don't know the names for the other slots but $backSlot can be changed with several other things to change the mount position. I hope you know how to spawn bots.

If you don't, you can find out how by look through scripts, it's obvious. Just like you could of found that function out.


What are you bumping this for; your question has been answered.

People won't do it for you.