Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
86542e94e0 |
2 changed files with 12 additions and 5 deletions
|
@ -10,14 +10,14 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
repository: vera/nuclide
|
repository: vera/nuclide
|
||||||
ref: Develop
|
ref: Develop
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
ref: Develop
|
ref: Develop
|
||||||
path: "./${{ github.event.repository.name }}"
|
path: "./${{ github.event.repository.name }}"
|
||||||
|
|
||||||
- name: assemble pk4
|
- name: assemble pk4
|
||||||
run: make dist-pak NAME=bin GAME=${{ github.event.repository.name }}
|
run: make dist-pak NAME=bin GAME=${{ github.event.repository.name }}
|
||||||
|
|
|
@ -63,7 +63,14 @@ CodeCallback_StartGameType(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (entity s = world; (s = ents.NextItem(s));) {
|
for (entity s = world; (s = ents.NextItem(s));) {
|
||||||
ents.Input(s, "SetRespawnTime", "30.0f", world);
|
string isWeapon = substring(s.classname, 0, 7);
|
||||||
|
string isAmmo = substring(s.classname, 0, 5);
|
||||||
|
|
||||||
|
if (isWeapon == "weapon_" || isAmmo == "ammo_") {
|
||||||
|
ents.Input(s, "SetRespawnTime", "20.0f", world);
|
||||||
|
} else {
|
||||||
|
ents.Input(s, "SetRespawnTime", "30.0f", world);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue