Skip to content

Commit

Permalink
Fast enemies #71
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Dec 2, 2023
1 parent 81b1974 commit 0a8b0c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
42 changes: 21 additions & 21 deletions missions/custom/techdemo/cyberdogs.cdogscpn/characters.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@
"Melee": "Fists",
"maxHealth": 15,
"flags": 167773184,
"probabilityToMove": 25,
"probabilityToMove": 50,
"probabilityToTrack": 50,
"probabilityToShoot": 10,
"actionDelay": 5
"actionDelay": 25
},
{
"Class": "Cyborg",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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
}]
}
8 changes: 4 additions & 4 deletions src/cdogsed/char_editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static int GunIndex(const WeaponClass *wc)
{
continue;
}
if (wc == wc2)
if (strcmp(wc->name, wc2->name) == 0)
{
return j;
}
Expand All @@ -385,7 +385,7 @@ static int GunIndex(const WeaponClass *wc)
{
continue;
}
if (wc == wc2)
if (strcmp(wc->name, wc2->name) == 0)
{
return j;
}
Expand All @@ -406,7 +406,7 @@ static int MeleeIndex(const WeaponClass *wc)
{
continue;
}
if (wc == wc2)
if (strcmp(wc->name, wc2->name) == 0)
{
return j;
}
Expand All @@ -417,7 +417,7 @@ static int MeleeIndex(const WeaponClass *wc)
{
continue;
}
if (wc == wc2)
if (strcmp(wc->name, wc2->name) == 0)
{
return j;
}
Expand Down

0 comments on commit 0a8b0c4

Please sign in to comment.