Jump to content


Photo

timed knockout period


  • Please log in to reply
41 replies to this topic

#26 AluminumHaste

AluminumHaste

    Darkmod Contributor

  • Development Role
  • PipPipPipPipPip
  • 6274 posts

Posted 09 February 2019 - 09:25 AM

But how long would a mission take in the real world? I don't know long people stay unconcious after being blackjacked, but anything over an hour won't matter. Also while we are talking about realism, do guards notice dropped swords or blood pools?

 

Dropped swords was implemented in 2.04, it's been around a long time now:

 

http://youtu.be/so3hPDySfxw?t=79


I always assumed I'd taste like boot leather.

 

#27 Springheel

Springheel

    Creative Director (retired)

  • Admin
  • 37693 posts

Posted 09 February 2019 - 09:27 AM

The difference between killing and knocking out is not purely cosmetic.  When you kill someone, they emit a loud death cry that alerts AI within earshot.  KOing a guard does not do this.  Killing a guard should also spawn a bloodstain that will alert passing AI if not cleaned up.  This doesn't happen with a knockout.  Also, in order to kill someone, you have to take out your sword or bow, which makes you easier to detect.

 

Granted there are cases, like when it's really dark and there is no other AI around, where these things don't matter, but they will come into play in many cases.


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

#28 chakkman

chakkman

    Advanced Member

  • Member
  • PipPipPip
  • 1111 posts

Posted 09 February 2019 - 10:08 AM

Just wondering, but... do AI's react to swords which are lyeing around from knocked out or killed guards?



#29 AluminumHaste

AluminumHaste

    Darkmod Contributor

  • Development Role
  • PipPipPipPipPip
  • 6274 posts

Posted 09 February 2019 - 10:28 AM

Just wondering, but... do AI's react to swords which are lyeing around from knocked out or killed guards?

 

See the first post on this page.


I always assumed I'd taste like boot leather.

 

#30 chakkman

chakkman

    Advanced Member

  • Member
  • PipPipPip
  • 1111 posts

Posted 09 February 2019 - 10:44 AM

Thanks. :)



#31 Abusimplea

Abusimplea

    Advanced Member

  • Member
  • PipPipPip
  • 533 posts

Posted 09 February 2019 - 11:38 AM

I normally don't kill - but when i do it, i first knock them out and carry them to a safe place before beheading them with my trusty short sword. That way there are no screams and other unexpecting victims don't see any gore lying around.

 

I like how current knockout / killing mechanics work. Making AI able to wake other AI would not change anything for me as i never let bodies lie around, where others woud see them. But for less stealth-oriented players, it could make the world a litte bit more believable (does not matter, whether unconscious people could really be waken up or not - other games already created the expectation that it works) and incentivise properly hiding knocked-out AI.



#32 Springheel

Springheel

    Creative Director (retired)

  • Admin
  • 37693 posts

Posted 09 February 2019 - 12:10 PM

able (does not matter, whether unconscious people could really be waken up or not - other games already created the expectation that it works) and incentivise properly hiding knocked-out AI.

 

 

I don't understand this.  AI that find knocked out or dead bodies already go into full alert and warn everyone they meet about an intruder.  Isn't that incentive enough to properly hide bodies?


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

#33 Abusimplea

Abusimplea

    Advanced Member

  • Member
  • PipPipPip
  • 533 posts

Posted 09 February 2019 - 12:46 PM

I don't understand this.  AI that find knocked out or dead bodies already go into full alert and warn everyone they meet about an intruder.  Isn't that incentive enough to properly hide bodies?

Waking up lnocked-out AI would enlarge the force that searches for the player and should make avoiding it more diffiult. But as i said, i don't let other victims see victims i already dealt with. So it could very well be, that nobody would ever stumble upon a wakeup-by-AI mechanic...



#34 RPGista

RPGista

    Advanced Member

  • Member
  • PipPipPip
  • 1615 posts

Posted 09 February 2019 - 05:46 PM

The thing about KOed or killed characters is that they become ragdolls, subjected to physics, and thus all manner of things can happen to them - they can be carried around, proped on top of things, fold all weird upon themselves, characters could end up on top of each other, etc. I dont know how other games deal with this but its not trivial to transition from a random body position to a fixed animation of someone getting up from the floor, for example, without it being a really strange process. Maybe Im just ignorant, but I dont actually know how that would work in an easy way. Carrying unconscious people around is a staple of Thief and one of the mechanics that gave it its uniqueness, so having the ability of freely moving ragdolls is not gonna change, and that would probably be needed to allow for characters to be able to be reanimated - in Stalker, sometimes an npc falls down, badly hurt, and cant get up but isnt dead. You can cure him and he'll get up, but the lying down dying animation is a fixed animation from which you can transition to a dead state or a getting up animation with no problems. Once dead they become ragdolls and are subjected to physics (bullets, impacts, etc), but that is irreversible.


Edited by RPGista, 09 February 2019 - 05:48 PM.

  • Springheel likes this

#35 grayman

grayman

    Master Builder, Coder

  • Active Developer
  • PipPipPipPipPip
  • 12852 posts

Posted 09 February 2019 - 06:48 PM

A way to avoid the awkwardness (and lack) of wake up animations for ragdolls is to only allow it when the player is out of sight. This also covers the extra step of giving them back their weapons, if they were dropped.
  • Abusimplea likes this

#36 wesp5

wesp5

    Advanced Member

  • Member
  • PipPipPip
  • 662 posts

Posted 10 February 2019 - 05:24 AM

 

AI that find knocked out or dead bodies already go into full alert and warn everyone they meet about an intruder.  Isn't that incentive enough to properly hide bodies?

I agree. Compared to the trouble necessary to make waking up AI work depending on what happened to them this doesn't look worth the effort.



#37 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 916 posts

Posted 10 February 2019 - 04:56 PM

I should think a 'wake up' routine would have to be able to teleport the AI somewhere nearby as well, since even if there's space for the AI to stand, there's no guarantee the ragdoll will have been dropped inside an AAS area. But you wouldn't want to overdo it and make every AI into an escapologist, when normally they can't even climb ladders or duck under obstacles.


Some things I'm repeatedly thinking about...

- louder scream when you're dying


#38 demagogue

demagogue

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 5474 posts

Posted 10 February 2019 - 09:21 PM

A way to avoid the awkwardness (and lack) of wake up animations for ragdolls is to only allow it when the player is out of sight. This also covers the extra step of giving them back their weapons, if they were dropped.

 

This is what I was going to post. The way I could see doing this is with a script using the location system.

 

When an AI is KO'd, it calls a persistent script that sets the start time and player location, with a conditional for the duration and player location "now", with a check every few seconds. When the conditional is true (e.g., 15 minutes later, and the player is 2+ locations away from the KO-location), then the script deletes the AI & weapon, respawns the AI, and kills itself. I don't recall the particulars of spawning AI, but the whole thing seems like something a mapper could do by themselves all by script.

 

This is another one of those things I don't think is good for the game generally, but I'd be interested to see it in an FM. There have been some T2 FMs, or at least one I recall, that's done this, and it makes for a memorable surprise for the climax. In that case all KO'd AI were re-spawned and a readable notified the player, as it was part of the plot.


Posted Image

#39 grayman

grayman

    Master Builder, Coder

  • Active Developer
  • PipPipPipPipPip
  • 12852 posts

Posted 10 February 2019 - 09:46 PM

There's no way to determine location relations, so a delta of 2+ can't be realized. If it's done via locations, the mapper would have to design the map in such a way that he understands that a body in the kitchen can be awakened if the player is in the upstairs bedroom, outside, cellar, etc. They would need to manually create a 2d table of location vs. location that shows when something is legal and when it isn't. And the body and the player could be in the same location (i.e. outside), but there's no LOS from the player to the body.

 

A simpler way would be to check if the body is in the player's PVS. If not, a wake-up can happen, otherwise it's not safe.



#40 teh_saccade

teh_saccade

    Advanced Member

  • Member
  • PipPipPip
  • 708 posts

Posted 11 February 2019 - 04:57 AM

I tried to have a named AI as an object for a kidnapping, as an alternative to killing them, where - if the player decided to KO the NPC and move them to the area to leave before returning to complete another objective on the list, the KO'd AI would be deleted and a new one placed with a slightly different route and (didn't get this far) "drunk" and with new behaviours.

While it was a nice idea, to have the AI wake up after some time had passed [the timing was set by how long it took the player to satisfy another objective and if/then do the body-swap, rather than run a wait timer, which ensured the player didn't see it happen], the consequences of a woken up AI started to be more of a problem than a neat event.

Spoiler

 

So, ultimately, it was kinda crap and to make it work was too much work, and it didn't seem as an enjoyable feature, once the consequences were considered to keep the gameplay in-line with the player's expectations and experience in TDM.


Also - if AI woke up... How could I booby trap sleepers with mines as a safety net against discovery (ok, the explosion often means it doesn't matter, but it's cool), and use KO'd bodies unceremoniously dropped out a window as lures to distract guards from their posts..? It'd take out all the fun with ragdolls - everyone loves to line up the KO'd AI and push them off a cliff or send them to the bottom of the lake and grind the game to 5FPS as the physics go mental.
 


Edited by teh_saccade, 11 February 2019 - 04:58 AM.

  • VanishedOne likes this

#41 demagogue

demagogue

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 5474 posts

Posted Today, 08:42 AM

They would need to manually create a 2d table of location vs. location that shows when something is legal and when it isn't. And the body and the player could be in the same location (i.e. outside), but there's no LOS from the player to the body. A simpler way would be to check if the body is in the player's PVS. If not, a wake-up can happen, otherwise it's not safe.

 

Yeah something like a table. But you could name them in big groups, like of tens of locations to a group, and have a table of only 3x3 groups or so, the smallest number that works. That's how I was thinking about it, well after what I posted.

 

Sorry does PVS mean line of sight, or distance? I thought about that but worried about the player just poking in and out of LOS or range & the switch happening. It'd need some kind of failsafe margin, I thought. Time delay definitely, but it's not completely failsafe. So that's why I was thinking by location. But LOS and distance definitely could I'm sure work too if it had some simple failsafe way to avoid the zip-in-and-out-switch case.


Posted Image

#42 grayman

grayman

    Master Builder, Coder

  • Active Developer
  • PipPipPipPipPip
  • 12852 posts

Posted Today, 09:49 AM

Sorry does PVS mean line of sight, or distance?

 

PVS






1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


    demagogue