Author Topic: REQUEST; Freestyle script/m79 jump  (Read 1411 times)

0 Members and 1 Guest are viewing this topic.

Offline Mjolnir

  • Major(1)
  • Posts: 8
REQUEST; Freestyle script/m79 jump
« on: October 01, 2008, 07:09:58 am »
So how can you make it so that an additional m79 spawns in front of you when you spawn. That is all.

EDIT: How do i make people not get hurt when they shoot themselves. And any other things you's suggest for a freestyle server
« Last Edit: October 01, 2008, 07:22:58 am by Mjolnir »

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: REQUEST; Freestyle script/m79 jump
« Reply #1 on: October 01, 2008, 07:50:33 am »
Set M79 damage to 0

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: REQUEST; Freestyle script/m79 jump
« Reply #2 on: October 01, 2008, 07:52:26 am »
Set it to -9999999. (direct hit dmg)

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: REQUEST; Freestyle script/m79 jump
« Reply #3 on: October 01, 2008, 08:24:44 am »
Code: [Select]
procedure OnPlayerRespawn(ID: Byte);
begin
SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),7);
end;

function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;
begin
result := -9999999
end;

[saw]  on 1.5.1

Offline shantec

  • Soldier
  • **
  • Posts: 140
  • Get ANGREH!!
Re: REQUEST; Freestyle script/m79 jump
« Reply #4 on: October 01, 2008, 10:14:37 am »
Code: [Select]
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;
begin
result := -9999999
end;


Didn't compile? :]
You have forgot a semicolon at the end of RESULT

Code: [Select]
result := -9999999;
Also Known As REIMA


Lol Happles (happy apples)

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: REQUEST; Freestyle script/m79 jump
« Reply #5 on: October 01, 2008, 10:31:55 am »
'Damage = -9999999' is easier

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: REQUEST; Freestyle script/m79 jump
« Reply #6 on: October 01, 2008, 11:01:44 am »
'Damage = -9999999' is easier
dude learn to read
IT DOSENT COMPILE
you have to have a semilicon
also its := not =
also its result := not damage :=
and it dosent make anything easier anyway

Offline Mjolnir

  • Major(1)
  • Posts: 8
Re: REQUEST; Freestyle script/m79 jump
« Reply #7 on: October 01, 2008, 06:26:10 pm »
alright thanks guys

Quote
procedure OnPlayerRespawn(ID: Byte);
begin
SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),7);
end;

function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;
begin
result := -9999999
end;

That m79 spawn infront of you on respawn doesnt work? Someone try it
« Last Edit: October 01, 2008, 09:00:43 pm by Mjolnir »

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: REQUEST; Freestyle script/m79 jump
« Reply #8 on: October 01, 2008, 11:57:13 pm »
I think I missed one part, Ill take a look after school or somebody will correct me!
Thanks!
[saw]  on 1.5.1

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: REQUEST; Freestyle script/m79 jump
« Reply #9 on: October 02, 2008, 12:15:14 am »
Quote
procedure OnPlayerRespawn(ID: Byte);
begin
     SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),7);
end;

function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;
begin
     result := -9999999;
end;
Try that.

Edit: ooh and if you want to actually make it spawn in front of people then this should help...
Code: [Select]
var offset: integer;
begin
     if GetPlayerStat(ID,'direction') = '>' then begin
          offset := 10;
     end else if GetPlayerStat(ID,'direction') = '<' then begin
          offset := -10;
     end else offset := 0;
     SpawnObject(GetPlayerStat(ID,'x')+offset,GetPlayerStat(ID,'y'),7);
end;
NOT COMPILED, BUT THE IDEA IS THERE
« Last Edit: October 02, 2008, 01:06:34 am by iDante »

Offline Mjolnir

  • Major(1)
  • Posts: 8
Re: REQUEST; Freestyle script/m79 jump
« Reply #10 on: October 02, 2008, 05:58:30 am »
ok thanks, this is off topic but whats the script that makes the screen flash when you respawn, like in Sonnys db server

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: REQUEST; Freestyle script/m79 jump
« Reply #11 on: October 02, 2008, 06:31:13 am »
I think he is using http://forums.soldat.pl/index.php?topic=23368.0 that script or it's custom script.
[saw]  on 1.5.1

Offline Mjolnir

  • Major(1)
  • Posts: 8
Re: REQUEST; Freestyle script/m79 jump
« Reply #12 on: October 02, 2008, 06:17:28 pm »
ah thanks, you guys are really helpful :D