Author Topic: Flashbangs??  (Read 2882 times)

0 Members and 1 Guest are viewing this topic.

Offline echo_trail

  • Global Moderator
  • Rainbow Warrior
  • *****
  • Posts: 2222
  • ménage-à-trois
    • my last.fm
Re: Flashbangs??
« Reply #20 on: May 05, 2009, 10:16:36 am »
Any chance you can set your server up with flashbangs again? Didn't get a chance to try it out..
I fucking miss all you cunts!

DarkCrusade

  • Guest
Re: Flashbangs??
« Reply #21 on: May 05, 2009, 10:21:49 am »
I think this is scriptable, and I mean the whole thing! The script should include something like that you hit the button "G" to change grenades to flashbangs (gfx doesn´t change) which make bigsmokes of a certain number and of a certain time, but that would be probably overpowered / you have only one of these.

F12 to a script like that, F11 to include it in Soldat

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Flashbangs??
« Reply #22 on: May 05, 2009, 10:25:45 am »
Since I don't know that much of scripting, because i'm only a newb, that's all I can do. Plus I don't really like the idea.

Anyways I'll try to keep the server online now, though I'm testing some scripts and I have to shutdown/open it again over and over to know where I'm mistaken...

Offline Kerrazyeye

  • Soldier
  • **
  • Posts: 120
Re: Flashbangs??
« Reply #23 on: May 05, 2009, 10:42:14 am »
I had a dream last night, that somebody flashbanged me in soldat. I did not like this dream.

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Flashbangs??
« Reply #24 on: May 05, 2009, 10:51:21 am »
EDIT:NOW it uses 1.5 version
« Last Edit: May 05, 2009, 11:05:13 am by ~Niko~ »

Offline echo_trail

  • Global Moderator
  • Rainbow Warrior
  • *****
  • Posts: 2222
  • ménage-à-trois
    • my last.fm
Re: Flashbangs??
« Reply #25 on: May 05, 2009, 01:30:17 pm »
Sweet, I'll check in later tonight.
I fucking miss all you cunts!

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Flashbangs??
« Reply #26 on: May 05, 2009, 02:43:23 pm »
Would be a nice addition as a bonus.
Most of the stuff we currently have is used to deal direct damage to the enemy, except for pred and vest. Flashbang would add some variety to the arsenal, since it doesnt hurt enemies, but puts them into disadvantage instead.
Im sure that it won't screw up balance too much, as long as the flash duration and respawn time are within reasonable limits. Besides, you'll be amazed what experienced players can do even when blinded. A few times i even managed to cap a flag and kill a few guys after accidentally pulling out the cord from my monitor. :D
« Last Edit: May 05, 2009, 02:45:14 pm by L[0ne]R »

Offline AntiHero

  • Camper
  • ***
  • Posts: 289
  • INF all the way!
    • TheAllStarsClan Site
Re: Flashbangs??
« Reply #27 on: May 05, 2009, 03:44:28 pm »
Soo it was a good thing that flashbangs where not introduced to soldat :D but what about smoke grenades?
Infiltration|Veterinarian

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Flashbangs??
« Reply #28 on: May 05, 2009, 04:40:25 pm »
so you guys could test it out. Smoke grenades... wouldn't be good enough since they don't hurt the enemy and can't difficult see too much. Plus if there's some smoke I'd directly shot there without making sure there's something. Just in case of campers.

Offline The Epic Guy

  • Soldier
  • **
  • Posts: 205
  • No more foreplay
Re: Flashbangs??
« Reply #29 on: May 05, 2009, 04:41:48 pm »
Also with smoke nades, people can just make the graphic transparent, which defeats the point of having them.

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Flashbangs??
« Reply #30 on: May 05, 2009, 04:46:58 pm »
Useless then. Just keep dreaming with it or use my script to have an erection.

Offline AntiHero

  • Camper
  • ***
  • Posts: 289
  • INF all the way!
    • TheAllStarsClan Site
Re: Flashbangs??
« Reply #31 on: May 05, 2009, 04:51:57 pm »
Useless then. Just keep dreaming with it or use my script to have an erection.

O_o lol you put smoke grenades in your server?
Infiltration|Veterinarian

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Flashbangs??
« Reply #32 on: May 05, 2009, 04:54:53 pm »
Edit grenade gfx. Though the smoke would last there for a second because the framespeed would be the same than grenade's.

Or can you add more frames?

Offline Ketchup

  • Major(1)
  • Posts: 42
  • "If I can see it, I can kill it."
Re: Flashbangs??
« Reply #33 on: May 05, 2009, 09:40:25 pm »
No to Flash bangs or Smoke Grenades. I do not appreciate a growing community of complaints.
"If I can see it, I can kill it."
-[DO] Lt. Ketchup =S=

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Flashbangs??
« Reply #34 on: May 06, 2009, 10:28:55 am »
The ActionSnap code is pretty much copy pasta from my original Flashbang code in C++.
Just a fun fact I thought I'd throw out there >_>

I still like the idea of Flashbangs; mostly because I like Flashbangs in general. If this would ever be possible in Soldat, I would make it possible via Scripting. or something.

Offline PaFel

  • Veteran
  • *****
  • Posts: 1628
  • Weaponology Expert
    • PaFcio TACTIACAL
Re: Flashbangs??
« Reply #35 on: May 06, 2009, 02:57:53 pm »
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'.

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Flashbangs??
« Reply #36 on: May 06, 2009, 04:32:04 pm »
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'.
1. This would be easy to cheat around - simply editing explosion-gfx will get rid of the flash.
2. You will have to switch mods every time you're switching from normal servers to servers with flashbangs.
3. The explosion duration might be too short.
4. AFAIK, there is a way to make a flash with scripts. Like the !start comand in hide'n'seek servers, which fades soldat screen to black for the seeker for a certain amount of time (and without having any graphics added or changed).
« Last Edit: May 06, 2009, 04:38:14 pm by L[0ne]R »

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Flashbangs??
« Reply #37 on: May 07, 2009, 12:51:40 am »
Niko i edited your code to include dynamic flash duration depending on raycast and distance.

Untested, but hopefully works

Code: [Select]
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);
var
i,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;
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Flashbangs??
« Reply #38 on: May 07, 2009, 08:48:10 am »
Doesn't works... unknown identifier "dist" on 19:111. Fix it if you want.
« Last Edit: May 07, 2009, 08:53:58 am by ~Niko~ »

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Flashbangs??
« Reply #39 on: May 08, 2009, 12:29:16 am »

Code: [Select]
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);
var
i,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;
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs