Author Topic: SuicideBomber  (Read 5733 times)

0 Members and 1 Guest are viewing this topic.

Offline shantec

  • Soldier
  • **
  • Posts: 140
  • Get ANGREH!!
Re: SuicideBomber
« Reply #20 on: July 18, 2008, 04:21:24 pm »
Hey nadespammer, heres some nades for you to spam :)

Code: [Select]
const
    HeightFromPlayer = 50; //How far up from player the nova is
    Speed = 10; //Speed of bullets (10 isn't so much, like 100 in soldats Weapon.ini i think)
    Damage = 100000; //damage?
    Style = 2; //Style of bullets
    Amount = 100; //Amount of nades (bullets if ye changed style)


var
Countdown: array[1..32] of integer;
Armed: array[1..32] of boolean;

////Nova by the greatest scripter of mankind, Avarax =)
procedure Nova(const X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);
var i: integer;
    angle: single;
begin
  angle := 2*pi/n;
  for i:=0 to n do
    CreateBullet(X+cos(angle*i)*decentralize, Y+sin(angle*i)*decentralize, cos(angle*i)*speed, sin(angle*i)*speed, power,style , ID );
end;

function onplayercommand(id: byte; text: string): boolean;
begin
 case text of
  '/arm': if Armed[ID] = false then begin
Armed[ID] := true;
Countdown[ID] := 3;
WriteConsole(ID,'You have armed da suicide bomb',$123321); //<<--- mah favour hex color XD
  end;
 end;
 result:=false
end;

procedure AppOnIdle(ticks: integer);
var i: integer;
begin
  for i := 1 to 32 do
if Armed[i] = true then begin
  if Countdown[i] > 0 then begin
Countdown[i]:= Countdown[i] - 1;
  end else if Countdown[i] = 0 then begin
DoDamage(i,400);
Nova(GetPlayerStat(I,'X'), GetPlayerStat(I,'Y')-HeightFromPlayer, Speed, 0, Damage, I, Style, Amount);
WriteConsole(I,'KABOOOM',$123321);
Armed[i] := false;
exit;
  end;
end;
end;


ALL credits goes to jrgp... well... not from the nova =) (since im kind, i wont take any credits xD)
« Last Edit: July 19, 2008, 05:47:02 am by shantec »
Also Known As REIMA


Lol Happles (happy apples)

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: SuicideBomber
« Reply #21 on: July 18, 2008, 07:04:10 pm »
BANG that is awesome.
For me though, it always blows up, then after I respawn a couple kills later it kills me again?

Offline killziky

  • Major(1)
  • Posts: 2
Re: SuicideBomber
« Reply #22 on: July 19, 2008, 04:12:35 am »
this would be cool with 15 cluster spreding around  tried to make it but i think i gotta practice some more

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: SuicideBomber
« Reply #23 on: July 19, 2008, 04:25:22 am »
Clusters would be worse, they are so weak, and if they hit a roof, they will be wasted.
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline shantec

  • Soldier
  • **
  • Posts: 140
  • Get ANGREH!!
Re: SuicideBomber
« Reply #24 on: July 19, 2008, 05:47:11 am »
Yah, well! Since spawning nades via Server, isn't fully working, so:
the nades you spawn, actually stays in the ground for about 10 secs after they explodes, but they cant been seen o.O'

But, that nova /arm looks cool, if you have bullet time on ;)
Just.. it would be AWESOME to spawn full cluster nades (the ones soldat throws)
Hope 2.6.4 allows to do that ::)

[off] Multinator, i love ur sig :D [/off]

Also updated _MY_ bomber, nova is now easily moddable :P
Also Known As REIMA


Lol Happles (happy apples)

Offline killziky

  • Major(1)
  • Posts: 2
Re: SuicideBomber
« Reply #25 on: July 19, 2008, 10:10:19 am »
shantec that is just so nice

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: SuicideBomber
« Reply #26 on: July 22, 2008, 05:33:12 pm »
I've updated my script. Added shinyfoo to it, now uses AppOnIdle instead of sleep, useful arrays, multiple suiciders at once without problems, etc. Uses this by iDante to shoot nades out in 360 degrees, which does work:
Code: [Select]
//be a badass and shoot nades in all directions, credits for iDante for making this
for i := 1 to 360 do
CreateBullet(PlayerX, PlayerY, NadeSpeed*cos(i), NadeSpeed*sin(i),100, 2, PlayerID);
There are other worlds than these