A line that reflect projectiles

Moderator: GZDoom Developers

Post Reply
Jack
Posts: 17
Joined: Tue May 23, 2006 9:29 am

A line that reflect projectiles

Post by Jack »

I work ALMOST all right using the special "thing_trust" in the line, activated when projectile passes over, but is not perfect...

My idea is an line special that return the projectile at the same speed and at a calculated angle, as if the projectile bonces in the line.

The special would be called "line_bounce", and would be based on the "thing_trust" special.

Thanks for atention
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

Don't you mean ThrustThing? Thing_Thrust uses a tid whereas ThrustThing thrusts whatever crosses the line.
Jack
Posts: 17
Joined: Tue May 23, 2006 9:29 am

Post by Jack »

Anakin S. wrote:Don't you mean ThrustThing? Thing_Thrust uses a tid whereas ThrustThing thrusts whatever crosses the line.

I'm using Doom builder 1.67, special 72 and it appears as "thing_thrust", with 2 argumments (thrust angle and thrust distance). Maybe I need to update the configuration files.
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Post by Zippy »

Doom Builder just uses unusual names for things. What it is refering to as "thing_thrust" is indeed ThrustThing. It takes up to four arguments as listed on the wiki, regardless of what Doom Builder says it takes.
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Post by solarsnowfall »

Jack wrote:Maybe I need to update the configuration files.
Specifically ACS.cfg. You could add the extra arguments yourself, it's just text.
User avatar
ace
Posts: 787
Joined: Tue Jun 21, 2005 10:14 am
Location: Just south of the True North

Post by ace »

Perhaps what you're trying to do would work better with the activation "projectile hits" rather than "projectile passes through"? Otherwise, a feature like this might come in handy, especially for things like forcefileds and such.
Jack
Posts: 17
Joined: Tue May 23, 2006 9:29 am

Post by Jack »

ace wrote:Perhaps what you're trying to do would work better with the activation "projectile hits" rather than "projectile passes through"?
If possible, with both activation would be better.

Now I've been tinking about 3 arguments (speed, mode, fixed):

speed: speed ratio:
0 - Stop projectile
50 - Half speed
100 - Keep speed
200 - Double speed
...

mode:
0 - Keep angle (just accelerate or brake projectile)
1 - Reverse angle (projectile turns back, no mater the angle of the line)
2 - Bounce (as I said before)
3 - Fixed angle

fixed:
if mode = 3, the new angle of the projectile
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”