Author Topic: Known Script Errors and Undocumented Changes {2.8.0}  (Read 26675 times)

0 Members and 2 Guests are viewing this topic.

Offline Tio R

  • Major(1)
  • Posts: 12
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #20 on: September 08, 2009, 05:46:23 pm »
Code: [Select]
function OnPlayerDamage(Victim, Shooter: Byte; Damage: Integer):Integer;
begin
Result:=0;
end;
This works with deadly polygon, but always cause damage with flamer and hurts polygons.
God mode in climb don't work  :(

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #21 on: September 08, 2009, 05:50:12 pm »
Code: [Select]
function OnPlayerDamage(Victim, Shooter: Byte; Damage: Integer):Integer;
begin
Result:=0;
end;
This works with deadly polygon, but always cause damage with flamer and hurts polygons.
God mode in climb don't work  :(

Try Result := -Damage;
This may work.
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline Tio R

  • Major(1)
  • Posts: 12
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #22 on: September 09, 2009, 04:57:10 pm »
Try Result := -Damage;
This may work.
This work, but not perfectly.
For damage from flamer and hurts polygons, the function OnPlayerDamage is called only if the Victim have 0 of health.
Put an "WriteConsole(Victim,intToStr(GetPlayerStat(Victim,'health')) ,$000000)" inside of function OnPlayerDamage and see.

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #23 on: November 23, 2009, 09:03:21 am »
Use result := -9999999 and it will work for sure ( testet on my server ).

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #24 on: November 23, 2009, 02:38:40 pm »
Using result := -9999999 is fecking useless and stupid.
Integer: -32768 to 32767
KAWAAAAAAAIIIIIIIIII

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #25 on: November 24, 2009, 12:06:56 am »
What? Integer is 4 bytes, -2147483648 to 2147483647......  -32768 to 32767 is a 2 byte SmallInt, which is not used in the core.

Offline zop

  • Major
  • *
  • Posts: 81
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #26 on: November 24, 2009, 08:27:04 am »
Is this fixed in 2.7.0 too? As I know the m79 problem was fixed in 2.7.0.

http://122.116.167.31:23238:23238/galavela/?inc=player&name=%5BTomato+Bird%5D+Cibo[/size=1]

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #27 on: November 26, 2009, 02:43:42 pm »
Strange. Didn't know that it's not like in pascal...
KAWAAAAAAAIIIIIIIIII

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #28 on: November 26, 2009, 03:03:41 pm »
Strange. Didn't know that it's not like in pascal...

It technically isn't even pascal...it's a weird perversion of Delphi, which in itself is a weird perversion of Object Pascal.

It's a few generations younger :P
There are other worlds than these

Offline Quantifier

  • Major
  • *
  • Posts: 70
Re: Known Script Errors and Undocumented Changes {2.6.5}
« Reply #29 on: November 27, 2009, 02:18:16 am »
It technically isn't even pascal...it's a weird perversion of Delphi, which in itself is a weird perversion of Object Pascal.

Technically it is a subset of Object Pascal, not Delphi.