![]() |
|
#1
|
|||
|
|||
![]()
SO ehre i am back to scripting after giving up to focus on studying.
im tryign to create a scrip who counts for point when a palne gets killed (for now). to start: Quote:
I really dony understand, how Damagerscore list works, so where i am requesting your aid. for now, my problems are: AI is not counted as destoyed, if i crash my plane is ok, but if an AI shoots me down it dobles the score ( im guessing its becosue im not specifin initiator or reciever of the damage. I based myself on the code From "Mid-july1940_v10" mission, who looks like: Quote:
so ... help? please? ![]() |
#2
|
|||
|
|||
![]()
Bump here. Can anyone explain damages score please?
Code removed by author
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 10-18-2012 at 09:07 AM. |
#3
|
|||
|
|||
![]()
Add all Values in the damagerlist together, then you have the 100%. Then divide
part damagerscore / 100% Value = Percent |
#4
|
|||
|
|||
![]() Quote:
Code removed by author
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 10-18-2012 at 09:08 AM. |
#5
|
|||
|
|||
![]()
No nothing wrong, after this you have the 100% Value.
Example 4 damagersscores (12, 1, 16, 5) 12 + 1 + 16 + 5 = 34 to get the percentual part of a single damager 12/34 = 0,353 (35,3%) 1/34 = 0,029 (2,9%) 16/34 = 0,471 (47,1%) 5/34 = 0,147 (14,7%) controll: 0,353 + 0,029 + 0,471 + 0,147 = 1 So Damager 1 has made 35,3% of the damage, Damager 3 has done the most with 47,1%. |
#6
|
|||
|
|||
![]()
Agh! Got it now
![]() Actor 1 dies .... total damages = 10 Actor 2 dies .... total dmaages = 100 Actor1 is 1/10 as strong as actor 2?
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE |
![]() |
|
|