Difference between revisions of "@workgun"
Jump to navigation
Jump to search
Lestofante (talk | contribs) |
Lestofante (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==@work gun== | ==@work gun== | ||
− | I'm thinking about this new | + | I'm thinking about this new gun, it's work is quite simple: get and save data as PM gun, but use a Pattern object instead a byte to save information. Also use a weigthing system for every value in patterns, giving -1 if the value seem to change always, 0 if is ininfluent, 1 if seem to be always the same (GF applied on value change instead of angle) |
===How gun works?=== | ===How gun works?=== | ||
* get data | * get data | ||
* create a Pattern based on data | * create a Pattern based on data | ||
* find similar pattern(s) | * find similar pattern(s) | ||
− | * shot as PM, create a virual bullet containig the Pattern and | + | * shot as PM, create a virual bullet containig the Pattern and his weigth |
* if bullet hit modify actual gun weigth with virtual bullet weigth | * if bullet hit modify actual gun weigth with virtual bullet weigth | ||
===Which data save?=== | ===Which data save?=== | ||
− | + | Pattern data stored: | |
− | * enemy distance travelled | + | * enemy distance travelled |
− | * enemy bearing change | + | * enemy bearing change |
− | * i've shot | + | * i've shot |
− | * enemy has shot | + | * enemy has shot - not actually |
− | * distance from me | + | * distance from me |
− | * enemy life | + | * enemy life |
===How find PM match?=== | ===How find PM match?=== | ||
− | * Look for exactly | + | * Look for exactly equal Pattern (weigthDistance = 0) |
if exactly match hasn't been found: | if exactly match hasn't been found: | ||
− | * | + | * Find distance of the Pattern value and multiply weigth, i call this "weigth distance" |
− | * | + | <math>weigthDistance=(pattern1.value1^2 - pattern2.value1^2) * gun.weigth1</math> |
− | * | + | * Return Patterns with lowest weigthDistance |
− | === | + | ===Where to shoot?=== |
− | + | As PM, see what happen after the best similar Pattern found :-) | |
− | |||
− | |||
− | I hope you have understend^^ | + | I hope you have understend^^, ask if you need |
==[[User:Lestofante|lestofante]] 13:11, 26 February 2009 (UTC) | ==[[User:Lestofante|lestofante]] 13:11, 26 February 2009 (UTC) |
Latest revision as of 15:51, 23 March 2009
Contents
@work gun
I'm thinking about this new gun, it's work is quite simple: get and save data as PM gun, but use a Pattern object instead a byte to save information. Also use a weigthing system for every value in patterns, giving -1 if the value seem to change always, 0 if is ininfluent, 1 if seem to be always the same (GF applied on value change instead of angle)
How gun works?
- get data
- create a Pattern based on data
- find similar pattern(s)
- shot as PM, create a virual bullet containig the Pattern and his weigth
- if bullet hit modify actual gun weigth with virtual bullet weigth
Which data save?
Pattern data stored:
- enemy distance travelled
- enemy bearing change
- i've shot
- enemy has shot - not actually
- distance from me
- enemy life
How find PM match?
- Look for exactly equal Pattern (weigthDistance = 0)
if exactly match hasn't been found:
- Find distance of the Pattern value and multiply weigth, i call this "weigth distance"
<math>weigthDistance=(pattern1.value1^2 - pattern2.value1^2) * gun.weigth1</math>
- Return Patterns with lowest weigthDistance
Where to shoot?
As PM, see what happen after the best similar Pattern found :-)
I hope you have understend^^, ask if you need ==lestofante 13:11, 26 February 2009 (UTC)