Jump to content


Photo

Knockout enemies bs falling onto them?


  • Please log in to reply
10 replies to this topic

#1 chakkman

chakkman

    Advanced Member

  • Member
  • PipPipPip
  • 1018 posts

Posted 02 April 2018 - 03:50 PM

Hey,

 

i thought i'd make a little feature suggestion as well. :) I know it hasn't been part of the original Thief's (as far as i remember), but, have the mod creators ever considered the possibility to knockout enemies by falling onto them, like in games like the Splinter Cell parts? I actually quite liked it, and, IMO, it could make a worthy addition to knocking out enemies with the blackjack, or gas arrows.

 

What do you think, or what is your objection towards it?

 

Edit: Found this: http://forums.thedar...hem/?hl=falling Does that mean it's already possible?


Edited by chakkman, 02 April 2018 - 03:54 PM.

  • RPGista likes this

#2 Abusimplea

Abusimplea

    Member

  • Member
  • PipPip
  • 471 posts

Posted 02 April 2018 - 04:16 PM

You certainly can knock out AI with heavy items like crates.

Did not test whether the heavy item is allowed to also be the player character. But i would consider it a bug if not as the player character is heavier than most of the other items you can use to knock out an AI.

 

This remeinds me that i need to train drop and throw knockouts. There are quite a few missions featuring lots of crates and other heavy clutter and i still almost always use the blackjack...



#3 chakkman

chakkman

    Advanced Member

  • Member
  • PipPipPip
  • 1018 posts

Posted 02 April 2018 - 04:39 PM

Oh yeah, i really liked that too in the original Thief's. Definitely possible there, but, i don't think drop down take outs were possible in them. As you say, they should be, if it's possible to knock enemies out with bigger crates.



#4 AluminumHaste

AluminumHaste

    Darkmod Contributor

  • Development Role
  • PipPipPipPipPip
  • 6208 posts

Posted 03 April 2018 - 06:58 AM

Oh we talked about it when the option to knock out with heavy objects was being discussed.

It wasn't that simple to implement so it wasn't.


  • chakkman likes this

I always assumed I'd taste like boot leather.

 

#5 chakkman

chakkman

    Advanced Member

  • Member
  • PipPipPip
  • 1018 posts

Posted 03 April 2018 - 09:35 AM

Alright. Maybe one day. :)



#6 Abusimplea

Abusimplea

    Member

  • Member
  • PipPip
  • 471 posts

Posted 03 April 2018 - 02:28 PM

Yeah, looks like won't fix. But most don't even know about the throw knockout. So most will probably never know that drop knockouts are missing.  :ph34r:



#7 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5682 posts

Posted 03 April 2018 - 05:07 PM

Hey,
 
i thought i'd make a little feature suggestion as well. :) I know it hasn't been part of the original Thief's (as far as i remember), but, have the mod creators ever considered the possibility to knockout enemies by falling onto them, like in games like the Splinter Cell parts? I actually quite liked it, and, IMO, it could make a worthy addition to knocking out enemies with the blackjack, or gas arrows.
 
What do you think, or what is your objection towards it?
 
Edit: Found this: http://forums.thedar...hem/?hl=falling Does that mean it's already possible?

link

 

Alter the player script so that a knockout stim is emitted from its origin (where the feets are) if the vertical velocity exceeds a certain negative value (the value determines how deep the player has to fall to be fast enough to take out ai, so you can adjust it so it is convincing and/or suitable for your fm), Negative speed needs to be checked every frame.


  • RPGista, Epifire and Abusimplea like this
FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#8 Abusimplea

Abusimplea

    Member

  • Member
  • PipPip
  • 471 posts

Posted 04 April 2018 - 02:49 AM

The old tracker is offline until 2011-01-30. ;)

Some URL rewriting to automatically redirect all direct issue links to the new tracker would be awesome...
Here is the old issue #2395 in the new Tracker.

 

In the 2.03 script reference (is there a newer one?), getLinearVelocity and StimEnable look interesting.

Untested code to be executed each frame:

stimId is the ID of the knockout stim (maybe to be found in the code implementing the crate knock outs)

knockoutVelocity is the upper limit on the velocity for enabling the stim

 vector v = $player1.getLinearVelocity();

 $player1.StimEnable(stimId, v_z <= knockoutVelocity);

Could this work?



#9 Springheel

Springheel

    Creative Director (retired)

  • Admin
  • 37380 posts

Posted 04 April 2018 - 07:30 AM

link

 

Alter the player script so that a knockout stim is emitted from its origin (where the feets are) if the vertical velocity exceeds a certain negative value (the value determines how deep the player has to fall to be fast enough to take out ai, so you can adjust it so it is convincing and/or suitable for your fm), Negative speed needs to be checked every frame.

 

If there was a way to do it without a performance impact I'd be in favour of it.


TDM Missions:   A Score to Settle   *   A Reputation to Uphold   *   A New Job   *    A Matter of Hours
 
Video Series:   Springheel's Modules   *   Speedbuild Challenge   *   New Mappers Workshop  *   Building Traps

#10 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5682 posts

Posted 04 April 2018 - 03:50 PM

The old tracker is offline until 2011-01-30. ;)

Some URL rewriting to automatically redirect all direct issue links to the new tracker would be awesome...
Here is the old issue #2395 in the new Tracker.

 

In the 2.03 script reference (is there a newer one?), getLinearVelocity and StimEnable look interesting.

Untested code to be executed each frame:

stimId is the ID of the knockout stim (maybe to be found in the code implementing the crate knock outs)

knockoutVelocity is the upper limit on the velocity for enabling the stim

 vector v = $player1.getLinearVelocity();

 $player1.StimEnable(stimId, v_z <= knockoutVelocity);

Could this work?

Nope.

 

 

If there was a way to do it without a performance impact I'd be in favour of it.

The performance impact is neclectable, as all the script would need to do is to access and check a numerical value.

 

The infinite loop would look like this

vector linvel;
while(1)
{
    linvel=getLinearVelocity();
    if (linvel_z < threshhold)
    {
      StimEnable(STIM_TRIGGER,1);
    }
    else {
      StimEnable(STIM_TRIGGER,0);
    }
    waitFrame();
}

This needs to be put in its own function and be called from the init method inside the scriptobject used by the player.


FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#11 Springheel

Springheel

    Creative Director (retired)

  • Admin
  • 37380 posts

Posted 04 April 2018 - 04:05 PM

The performance impact is neclectable, as all the script would need to do is to access and check a numerical value.

 

We should definitely look into adding it as a core gameplay feature then, in my opinion.


  • AluminumHaste, Vesegrad and Abusimplea like this
TDM Missions:   A Score to Settle   *   A Reputation to Uphold   *   A New Job   *    A Matter of Hours
 
Video Series:   Springheel's Modules   *   Speedbuild Challenge   *   New Mappers Workshop  *   Building Traps




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users