Welcome to Close Combat Series
  Login or Register Home  ·  Downloads  ·  Forums  ·  Combat Camera  ·  Help  

  Survey
Do incapacitations count as a soldier's kills?

Yes
No



Results
Polls

Votes 451
Comments: 0

  Shout Box!!

Only registered users can shout. Please login or create an account.

  Main Menu
Articles & News  
    Help
    Player`s News
    Site News
    Multiplayer
    Terrain Challenge
    Boot Camp
Community  
    Forums
    Downloads
    Combat Camera
    MOOXE @ Youtube
    Statistics
Members  
    Private Messages
    Your Account
    Logout

  Donations
Anonymous - $25.00
08/15/2022

Anonymous - $25.00
08/15/2022

Anonymous - $25.00
12/18/2021

Anonymous - $100.00
11/08/2021

Anonymous - $15.00
04/09/2021

Anonymous - $100.00
04/05/2021

Anonymous - $20.00
02/20/2021

Anonymous - $10.00
12/29/2020

Anonymous - $1.00
11/06/2020

ZAPPI4 - $20.00
10/10/2020

Find our site useful? Make a small donation to show your support.



Search for at
Close Combat Series Advanced Search


 Author
Message
 
ScnelleMeyer

Rep: 160
votes: 13


PostPosted: Thu Oct 20, 2016 1:02 am Post subject: Elements and protection values Reply with quote

I asked about how Cover and protection values from Elements.txt are implemented by the game engine at Matrix forums.
Steve McClaire gave a very solid answer that I am reposting here for modding reference.

"Cover is checked against the accuracy of the shot to determine if the shot hits the terrain or not. The higher the cover value the more likely the terrain is to protect the soldier. There are a number of modifiers to this, most importantly the 'in elem protection flag,' but things close range, weapon type, movement, etc. are a factor as well. The best possible cover would be to set 'cover' to 512 in all planes and set 'in elem prot' to 1 (full cover, all directions.)

Note that 'Good' and 'Critical' accuracy shots bypass terrain protection completely. The chance of getting one of these types of hits is reduced by the cover value, but they can still happen even if you put cover to max. So soldiers may still take a lucky hit that bypasses terrain protection.

The 'planes' are how high something is for LOS interaction purposes. This is used to determine if the LOS line intersects with the terrain feature using a very simple model of 3D space and heights.

prone <= 0.5m
low <= 1m
Med <2m> 2m

The exact 'plane' which is used to see if terrain is in the way depends on both the relative elevations and stances of the firer and the target (prone, crouch, stand, vehicle.) Imagine a 3D line from the plane of the firer to the plane of the target, and the height of that line is checked in a very simple manner (via which 'plane' it is currently in) to see if it intersects any cover in between them.

Example: Two soldiers are lying prone and both are at the same elevation. The 'prone' plane values would apply when checking LOS or determining cover. Now say the firer is in a two story building and the target is prone at a relatively short range (close enough that the LOS calculation comes down at a relatively high angle instead of flat across the map) -- in this case a higher plane would be used, depending on how 'high' the LOS line is when it crosses any obstacle between the firer and target.

Keep in mind that CC's notion of 3D space is very simple and not very granular. Also the way the 'fire' order line is determined and displayed is not as detailed as the method for checking cover when one soldier fires at another, so you can see discrepancies.

Steve "



Link: http://www.matrixgames.com/forums/tm.asp?m=4163264&mpage=1&key=&#4167526
Back to top
View user's profile Send private message
 
 
Post new topicReply to topic printer-friendly view Close Combat Series Forum Index -> Modding Workshop


 
   
 


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum




Forums ©





In August of 2004, Zappi, Homba, Bambam887, RedScorpion and MOOXE all pitched
in to create this Close Combat site. I would to thank all the people who have visited and
found this site to thier liking. I hope you had time to check out some of the great Close Combat
mods and our forums. I'd also like to thank all the members of our volunteer staff that have
helped over the years, and all our users that contributed to this site!