Can these 2 things be made?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
nuuskamuikkunen
Private
Posts: 3
Joined: Sat Jun 14, 2003 8:10 am

Can these 2 things be made?

Post by nuuskamuikkunen »

Hi! I'm new to mapping but I have a few questions before I start my project (well, no use starting if these can't be made).

So, is it possible to make

1) for example a ball that bounces/moves when you run to it and bounces/moves/flies when you shoot it (knockback)

2) an object (doesn't really matter what it is) that would explode when the ball hits it?

I have a hunch that those are impossible. Or am I wrong? I hope so :roll:
Thanks for any help!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes I think it's possible. Use a projectile (something like a grenade). It would have to be entirely scripted.
Image
nuuskamuikkunen
Private
Posts: 3
Joined: Sat Jun 14, 2003 8:10 am

Post by nuuskamuikkunen »

jv_map wrote:Yes I think it's possible. Use a projectile (something like a grenade). It would have to be entirely scripted.
Even a grenade itself would do the trick but it doesn't move when you shoot it or "kick" it.

So I would need to do some scripthing outside map editor?
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

i think theres an entity like "func_fallingrock" that has alot of things like, "bounce" which is sent to the entity when its touched. mess around with that and i think it could work.
nuuskamuikkunen
Private
Posts: 3
Joined: Sat Jun 14, 2003 8:10 am

Post by nuuskamuikkunen »

Alcoholic wrote:i think theres an entity like "func_fallingrock" that has alot of things like, "bounce" which is sent to the entity when its touched. mess around with that and i think it could work.
Thanks for the info! I think the biggest problem is to make the ball move (knockback) when you shoot it. Dunno how that could be done.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Trigger_push

Post by tltrude »

There is a func_pushobject that will probably work.
Tom Trude,

Image
Sideways
Corporal
Posts: 25
Joined: Wed Apr 30, 2003 9:21 am

Post by Sideways »

But how would you get push_object to react to gunfire? I think it would be possible to script the 'ball' in such a way that it bounces when it hits a player, but I don't even think it's possible to have it react to gunfire.
[TaF]Maj.|IRISH ASSASSIN
Image
www.ta-force.com
_Snake_
Sergeant
Posts: 52
Joined: Mon Mar 03, 2003 12:22 pm
Location: Canada
Contact:

Post by _Snake_ »

Well, I thought about this and I must say it's possible but it would probably be kinda weird. You would have to make triggers all around the ball. Then bind the triggers to the ball. Whenever a trigger is shot the ball rotates however far it should BUT the triggers must rotate the exact same just in a negative value. You would have to do this so that the triggers don't spin the ball over and start shooting a trigger that was meant to make the ball go another way.

Umm, if you don't get this I can try my hand at it when I get home.
:D
Post Reply