0 Members and 5 Guests are viewing this topic.
Quote from: miketh2005 on July 10, 2009, 07:31:20 pmDonate to enesceHAHAHAHAHAHAHA
Donate to enesce
Useless then. Just keep dreaming with it or use my script to have an erection.
It would be even easier with one simple mod:Make quite big white circle and save it as explosion-gfx. It would be in front (tested) but only one proble is that it'd be displayed down-right from the explosion. I still think that bigger gfx in Soldat should be displayed 'centred'.
const MAX_DIST = 100; //maximum distance for flashbang to 'get' someone MAX_DURATION = 300; //maximum duration for flashbang to last in ticks (60 ticks = 1 second)procedure OnPlayerSpeak(ID: Byte; Text: string);vari,j: integer;begin if Text = '!flash' then begin for i:= 1 to 32 do begin if rayCast(GetPlayerStat(ID,'X'), GetPlayerStat(ID,'Y'), GetPlayerStat(i,'X'), GetPlayerStat(i,'Y'), dist, MAX_DIST) then begin j:= Distance(GetPlayerStat(ID,'X'), GetPlayerStat(ID,'Y'), GetPlayerStat(i,'X'), GetPlayerStat(i,'Y')); j:= 1 - (j/MAX_DIST); DrawText(i,'||',j * MAX_DURATION,RGB(255,255,255),40,-2500,-500); end; end; end;end;
const MAX_DIST = 100; //maximum distance for flashbang to 'get' someone MAX_DURATION = 300; //maximum duration for flashbang to last in ticks (60 ticks = 1 second)procedure OnPlayerSpeak(ID: Byte; Text: string);vari,j,dist: integer;begin if Text = '!flash' then begin for i:= 1 to 32 do begin if rayCast(GetPlayerStat(ID,'X'), GetPlayerStat(ID,'Y'), GetPlayerStat(i,'X'), GetPlayerStat(i,'Y'), dist, MAX_DIST) then begin j:= Distance(GetPlayerStat(ID,'X'), GetPlayerStat(ID,'Y'), GetPlayerStat(i,'X'), GetPlayerStat(i,'Y')); j:= 1 - (j/MAX_DIST); DrawText(i,'||',j * MAX_DURATION,RGB(255,255,255),40,-2500,-500); end; end; end;end;