A few requests

Moderator: GZDoom Developers

Darkhaven
Posts: 29
Joined: Tue Jul 12, 2005 2:55 am

A few requests

Post by Darkhaven »

+TRANQUILIZER:

Maybe some sort of flag to be applied to hitscan weapons or projectiles that will stun an enemy for "reaction time * 8" ? Also as an addendum to this "feature", would it be possible to add the ability to define Tranquilized states in DECORATE? If states are not defined, the thing would go into it's death animation and be resurrected "reaction time * 8" tics later...

A_TrankTracker pointer in DECORATE:
A simple pointer to add a single tic every time the frame is looped, up until (reaction time * 8) tics are reached, at which point either the frame with the A_WakeUp pointer is played through or the Resurrection states are played...?

Thing_SpecialProjectile();

I suggest for a quick way to define "special projectile loops" you take a quick look at this:

Code: Select all


Thing_SpecialProjectile(placementID, nextID, ThingtoShoot, thingID, <translations>);

placementID : The place number that this projectile is, referenced by nextID.

nextID : The next time the monster with a Thing ID equal to 'thingID', the Thing_SpecialProjectile(); command with this number as 'placementID' is used.

ThingtoShoot : What object to use as a projectile, as defined either in the standard form (T_IMP for example), or as referenced by DECORATE.

thingID : Any monster or Mapspot(gravity) with this ID will shoot this projectile and the following projectile sequence if applicable. (I was thinking that this could be done by something like MapSpotProjectile(thingID, placementID), if you see where I'm going with this)

translations : Follows the same structure as Thing_SetTranslation, except you don't need to use a ThingID for what should bear the translation.

Thing_ForceDirection();

Maybe the first use you think of for this script action won't be in the front of your mind, but it may be useful later.

Code: Select all


Thing_ForceDirection(thingID, direction);

thingID : The ThingID of the object whose direction you wish to change.

direction : The direction you want the Thing to face. If possible, it would be cool if this could be done with something like D_NORTH, D_SOUTHEAST, etc.

GetActorX();, GetActorY(); and GetActorZ();

Code: Select all


GetActorX(thingID, actortype);
GetActorY(thingID, actortype);
GetActorZ(thingID, actortype);

thingID = the Thing ID of whatever you want to retreive the polar* coordinates from.

actortype = set 0 for a monster or other non-player object, set 1, 2, 3, or 4 for a player object of the corresponding (positive) number, or type AllPlayers to get all the player coordinates at once(???)

* = I don't recall completely, but while I was working on DarkDoom a long time back, it appeared as if clipping along LINEDEFs was determined through polar coordinates, which is sorta silly. Can anyone confirm this?
:(

That's it.
Last edited by Darkhaven on Wed Jul 13, 2005 6:27 am, edited 1 time in total.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

GetActorX,Y and Z are already in, using TID's
Darkhaven
Posts: 29
Joined: Tue Jul 12, 2005 2:55 am

Post by Darkhaven »

Heh
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Also, SetAngle is in 2.0.96x
Darkhaven
Posts: 29
Joined: Tue Jul 12, 2005 2:55 am

Post by Darkhaven »

God dammit.

BUT YOU STILL CAN'T TOUCH MY THING_SPECIALPROJECTILE(); SHIT NOW CAN YOU?!/!?!!1one
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

BTW, SpawnID's wouldn't be used if THING_SPECIALPROJECTILE: Proper names would be used.
Darkhaven
Posts: 29
Joined: Tue Jul 12, 2005 2:55 am

Post by Darkhaven »

Why not? DoomEdNum in DECORATE is basically the same as the numbers those T_THING macros are hiding, from what I've seen, and the DECORATE names for actors can in theory be thought of as macros for the DoomEdNums.
Last edited by Darkhaven on Wed Jul 13, 2005 6:36 am, edited 1 time in total.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

No they aren't: They are different numbers.
Darkhaven
Posts: 29
Joined: Tue Jul 12, 2005 2:55 am

Post by Darkhaven »

I give up.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49072
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

:laff:
Darkhaven
Posts: 29
Joined: Tue Jul 12, 2005 2:55 am

Post by Darkhaven »

Graf Zahl wrote::laff:
Yeah, you keep laughing your ass off over there, Graf. I'd like to see anyone with an easier way to do a Thing_SpecialProjectile(); action than mine, more specifically, one that uses less arguments but the same level of functionality.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49072
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

I really don't see what you want to do there. To me it looks that you'd like to have code that you'd have to script yourself moved into the engine.
User avatar
Cutmanmike
Posts: 11335
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

Thing_ForceDirection(); seems the only logical one here. And we need it.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

What do you think Thing_SetAngle in 2.0.96x is?
Darkhaven
Posts: 29
Joined: Tue Jul 12, 2005 2:55 am

Post by Darkhaven »

Graf Zahl wrote:I really don't see what you want to do there. To me it looks that you'd like to have code that you'd have to script yourself moved into the engine.
I'd like to see how to script Thing_SpecialProjectile(); please.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”