From 0a8b0c42c57e52b117833808b754fdb296b0f3c2 Mon Sep 17 00:00:00 2001 From: Cong Date: Sat, 2 Dec 2023 15:57:06 +1100 Subject: [PATCH] Fast enemies #71 --- .../cyberdogs.cdogscpn/characters.json | 42 +++++++++---------- src/cdogsed/char_editor.c | 8 ++-- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/missions/custom/techdemo/cyberdogs.cdogscpn/characters.json b/missions/custom/techdemo/cyberdogs.cdogscpn/characters.json index a73ea90d5..7e2ab34ac 100644 --- a/missions/custom/techdemo/cyberdogs.cdogscpn/characters.json +++ b/missions/custom/techdemo/cyberdogs.cdogscpn/characters.json @@ -83,10 +83,10 @@ "Melee": "Fists", "maxHealth": 15, "flags": 167773184, - "probabilityToMove": 25, + "probabilityToMove": 50, "probabilityToTrack": 50, "probabilityToShoot": 10, - "actionDelay": 5 + "actionDelay": 25 }, { "Class": "Cyborg", @@ -105,10 +105,10 @@ "Melee": "Fists", "maxHealth": 12, "flags": 167773184, - "probabilityToMove": 50, - "probabilityToTrack": 50, + "probabilityToMove": 75, + "probabilityToTrack": 75, "probabilityToShoot": 10, - "actionDelay": 5 + "actionDelay": 20 }, { "Class": "Cyborg", @@ -127,10 +127,10 @@ "Melee": "Fists", "maxHealth": 60, "flags": 167773184, - "probabilityToMove": 25, - "probabilityToTrack": 50, - "probabilityToShoot": 10, - "actionDelay": 5 + "probabilityToMove": 75, + "probabilityToTrack": 75, + "probabilityToShoot": 50, + "actionDelay": 25 }, { "Class": "Cyborg", @@ -146,13 +146,13 @@ "Glasses": "ff1616ff", "speed": 512, "Gun": "Lazer", - "Melee": "Fists", + "Melee": "Chainsaw", "maxHealth": 12, "flags": 167773184, - "probabilityToMove": 25, - "probabilityToTrack": 50, - "probabilityToShoot": 10, - "actionDelay": 5 + "probabilityToMove": 75, + "probabilityToTrack": 75, + "probabilityToShoot": 5, + "actionDelay": 10 }, { "Class": "Cyborg", @@ -172,10 +172,10 @@ "Melee": "Fists", "maxHealth": 15, "flags": 167773184, - "probabilityToMove": 25, - "probabilityToTrack": 50, - "probabilityToShoot": 10, - "actionDelay": 5 + "probabilityToMove": 75, + "probabilityToTrack": 75, + "probabilityToShoot": 50, + "actionDelay": 15 }, { "Class": "Cyborg", @@ -192,12 +192,12 @@ "Glasses": "ff1616ff", "speed": 256, "Gun": "TurboLazer", - "Melee": "Fists", + "Melee": "2xChainsaw", "maxHealth": 60, "flags": 167773184, "probabilityToMove": 50, "probabilityToTrack": 50, - "probabilityToShoot": 10, - "actionDelay": 5 + "probabilityToShoot": 50, + "actionDelay": 10 }] } \ No newline at end of file diff --git a/src/cdogsed/char_editor.c b/src/cdogsed/char_editor.c index ea926a841..f1047508d 100644 --- a/src/cdogsed/char_editor.c +++ b/src/cdogsed/char_editor.c @@ -374,7 +374,7 @@ static int GunIndex(const WeaponClass *wc) { continue; } - if (wc == wc2) + if (strcmp(wc->name, wc2->name) == 0) { return j; } @@ -385,7 +385,7 @@ static int GunIndex(const WeaponClass *wc) { continue; } - if (wc == wc2) + if (strcmp(wc->name, wc2->name) == 0) { return j; } @@ -406,7 +406,7 @@ static int MeleeIndex(const WeaponClass *wc) { continue; } - if (wc == wc2) + if (strcmp(wc->name, wc2->name) == 0) { return j; } @@ -417,7 +417,7 @@ static int MeleeIndex(const WeaponClass *wc) { continue; } - if (wc == wc2) + if (strcmp(wc->name, wc2->name) == 0) { return j; }