0 Members and 1 Guest are viewing this topic.
I'm pretty sure you can mod the grenade gfx to make something like this already.
How does this work, does everyone get flashed no matter what?
Quote from: miketh2005 on July 10, 2009, 07:31:20 pmDonate to enesceHAHAHAHAHAHAHA
Donate to enesce
Quote from: excruciator on May 04, 2009, 06:08:15 pmHow does this work, does everyone get flashed no matter what?There would probably be some kinda realistic mode implementation done to to normal mode, where the flash would only show if it was actually in your field of vision.
So everyone get flashed since everything on your screen is in the field of vision.That's kinda useless
[...]//Shame it has to be shown to everybody in the map...procedure OnPlayerSpeak(ID: Byte; Text: string);beginif Text = '!flash' then begin DrawText(0,'||',110,RGB(255,255,255),40,-2500,-500);end;end;[...]
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;