Soldat Fans > Developers Corner

1.6.9b1 Beta testing!

<< < (3/5) > >>

BaneOfDeath:
#1
Soldat sometimes stops working when you click on "download server list".
#2
Occur huge lag when use scriptcore 3 - Apponidle(TickThreshold:=1), and use in it elements scripts core 2.
But using CPU is negligible and ping 800-1600...
#3
Occur huge lag when bullet flying long distance. Onerous in my weapons mods.

Savage:
I made code to show me bullet style on damage event and I got an error when i'm hitting some1 with clusters:


--- Code: ---function OnDamage(Shooter, Victim: TActivePlayer; Damage: Integer; BulletId: Byte): Integer;
begin
Shooter.WriteConsole(IntToStr(Map.Bullets[BulletID].Style),$FFFFFF);
Result:=Damage;
end;
--- End code ---


--- Code: ---15-05-09 14:28:36 Savage has joined alpha team.
15-05-09 14:28:42 [Savage] !cluster
15-05-09 14:28:55 [Savage] now im gonna hit the bot
15-05-09 14:29:05 /addbot2 Boogie Man(127.0.0.1[Savage])
15-05-09 14:29:21 [Savage] !cluster
15-05-09 14:29:21 <Test> ErrorCode: ErNoError
15-05-09 14:29:21 <Test> Message: ID must be from 1 to 254
15-05-09 14:29:21 <Test> UnitName:
15-05-09 14:29:21 <Test> FunctionName: ONDAMAGE
15-05-09 14:29:21 <Test> Row: 0
15-05-09 14:29:21 <Test> Col: 0
--- End code ---

And bullets styles are different on wiki:
Spas: Wiki=5|Script=3 (3-shotgun pellets, weapons.ini...)

http://wiki.soldat.pl/index.php/TActiveMapBullet.Style

ExHunter:
Probably cluster shells doesn't register as bullets. But not sure about that.

non-bullets damage/kills have ID 255: e.g. commiting suicide with deadly polygons.

----

weapons.ini and scriptcore are not related to each other. Wiki should be right about scriptcore stuff. weapons.ini is a complete other thing. :)

Savage:
I've just compared bullets styles from weapons.ini to styles from script core and script is giving me the same id as in weapons.ini (when it shouldn't?) and it means that almost all ids from that site are wrong http://wiki.soldat.pl/index.php/TActiveMapBullet.Style

Map.Bullets[BulletID].Style is giving me 6 for punch, 3 for spas, 12 for law it's the same in weapons.ini then why the hell on wiki punch is 255, spas is 5 , law is 13. Please update wiki, thx for response.

I have hope that was constructive criticism.

Savage:
I must apologize for spam but i think IDs from bullet style should be in GetOwnerWeaponId because that function is giving me IDs from bullet style page.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version