Skip to content

Commit

Permalink
added double layer on vertigo
Browse files Browse the repository at this point in the history
  • Loading branch information
osztenkurden committed Jul 30, 2020
1 parent 05557b9 commit fe31b42
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HUD/Radar/LexoRadar/LexoRadarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class App extends React.Component<IProps> {
if ("config" in map) {
return ({
position: this.parsePosition(extGrenade.flames[id].split(", ").map(pos => Number(pos)), 12, map.config),
id,
id: `${id}_${extGrenade.id}`,
visible: true
});
}
Expand Down
38 changes: 37 additions & 1 deletion src/HUD/Radar/LexoRadar/maps/de_vertigo/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
import radar from './radar.png'

const high = {
"origin": {
"x": 784.4793452283254,
"y": 255.42597837029027
},
"pxPerUX": 0.19856123172015677,
"pxPerUY": -0.19820052722907044
};

const low = {
"origin": {
"x": 780.5145858437052,
"y": 695.4259783702903
},
"pxPerUX": 0.1989615567841087,
"pxPerUY": -0.19820052722907044
};

export default {
configs: [
{
id: 'high',
config: high,
isVisible: (height: number) => height >= 11700,
},
{
id: 'low',
config: low,
isVisible: (height: number) => height < 11700,
},
],
file: radar
}
/*
import radar from './radar.png'
export default {
"config": {
"origin": {
Expand All @@ -10,4 +46,4 @@ export default {
"pxPerUY": -0.3450882697407333
},
"file":radar
}
}*/
Binary file modified src/HUD/Radar/LexoRadar/maps/de_vertigo/radar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fe31b42

Please sign in to comment.