CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Forum
  • Accueil
  • Actus
  • Tests
  • Vidéos
  • Images
  • Soluces
  • Forum
Liste des sujets

Je test quelque chose....

Greg2206
Greg2206
Niveau 9
13 mai 2012 à 21:21:39

// ****************** Weapons
var statsx=315;
var statsy=yloc-2;
var statss=8;
var statsl=9;

// get weapons list sorted by number of kills
var
bestweaps=getSortedList(p.stats.weapons,'kills');

// find first pistol in sorted weapons list
pcount=0;
wcount=0;
for (n in bestweaps) {
if (bestweaps[n].category!='Pistols' && wcount!=3) {
wcount++;
if (wcount==1) weapy=statsy;
else if (wcount==2) weapy=statsy+36;
else if (wcount==3) weapy=statsy+72;
image({x:statsx, y:weapy-9, file:bestweaps[n].img, w:74, h:45});
wtext='';
wtext=wcount+'. '+bestweaps[n].name;
invshadowtext({x:statsx, y:weapy, size:6, text:wtext});
wtext=bestweaps[n].kills + ' kills';
text({x:statsx+129, y:weapy+10, size:6, text:wtext, align:'right'});

wtext=nf(bestweaps[n].hits/bestweaps[n].shots*100,
1) + '% Acc';
text({x:statsx+129, y:weapy+19, size:6, text:wtext, align:'right', color:'ffffff'});
} else if (pcount==0 && bestweaps[n].category=='Pistols') {
//text({x:330, y:54, size:6, text:bestweaps[n].name, align:'center'});
//image({x:293, y:53, file:bestweaps[n].img, w:71, h:43});
var ptext='';
ptext=bestweaps[n].kills + ' kills';
//text({x:330, y:97, size:6, text:ptext, align:'center'});

ptext=nf(bestweaps[n].hits/bestweaps[n].shots*100,
1) + '% Acc.';
//text({x:330, y:105, size:6, color:'ffffff', text:ptext, align:'center'});
pcount++;;
}
else if (pcount==1 && wcount==3) break;
};

Greg2206
Greg2206
Niveau 9
13 mai 2012 à 21:22:23

// ****************** Weapons
var statsx=315;
var statsy=yloc-2;
var statss=8;
var statsl=9;

// get weapons list sorted by number of kills
var
bestweaps=getSortedList(p.stats.weapons,'kills');

// find first pistol in sorted weapons list
pcount=0;
wcount=0;
for (n in bestweaps) {
if (bestweaps[n].category!='Pistols' && wcount!=3) {
wcount++;
if (wcount==1) weapy=statsy;
else if (wcount==2) weapy=statsy+36;
else if (wcount==3) weapy=statsy+72;
image({x:statsx, y:weapy-9, file:bestweaps[n].img, w:74, h:45});
wtext='';
wtext=wcount+'. '+bestweaps[n].name;
invshadowtext({x:statsx, y:weapy, size:6, text:wtext});
wtext=bestweaps[n].kills + ' kills';
text({x:statsx+129, y:weapy+10, size:6, text:wtext, align:'right'});

wtext=nf(bestweaps[n].hits/bestweaps[n].shots*100,
1) + '% Acc';
text({x:statsx+129, y:weapy+19, size:6, text:wtext, align:'right', color:'ffffff'});
} else if (pcount==0 && bestweaps[n].category=='Pistols') {
//text({x:330, y:54, size:6, text:bestweaps[n].name, align:'center'});
//image({x:293, y:53, file:bestweaps[n].img, w:71, h:43});
var ptext='';
ptext=bestweaps[n].kills + ' kills';
//text({x:330, y:97, size:6, text:ptext, align:'center'});

ptext=nf(bestweaps[n].hits/bestweaps[n].shots*100,
1) + '% Acc.';
//text({x:330, y:105, size:6, color:'ffffff', text:ptext, align:'center'});
pcount++;;
}
else if (pcount==1 && wcount==3) break;
};

La vidéo du moment