set g_player_template_example_random_start_rockets "default" "How much rockets does the player get with random start rocket-based weapon."
set g_player_template_example_random_start_cells "default" "How much cells does the player get with random start cell-based weapon."
set g_player_template_example_random_start_plasma "default" "How much plasma does the player get with random start cell-based weapon."
+set g_player_template_example_start_extra_lives "default" "How many extra lives does the player get during spawn in instagib."
+set g_player_template_example_start_ammo_vaporizer_cells "default" "How many vaporizer cells does the player get during spawn in instagib."
set g_player_template_example_drop_weapons "default" "Whether the player can drop weapons by throwing them or by dying."
{
return "g_random_start_plasma";
}
+ case "start_ammo_vaporizer_cells":
+ {
+ return "g_instagib_ammo_start";
+ }
case "drop_weapons":
{
return "g_weapon_throwable";
case "random_start_rockets":
case "random_start_cells":
case "random_start_plasma":
+ case "start_ammo_vaporizer_cells":
case "drop_weapons":
case "health_regen_factor":
case "health_regen_linear":
{
return 1;
}
+ case "start_extra_lives":
+ {
+ return 0;
+ }
case "attack_scale":
case "defense_scale":
{
{
return;
}
+ if (autocvar_g_instagib)
+ {
+ SetResourceAmount(player, RESOURCE_ARMOR,
+ PlayerTemplate_GetFloatValue(template, "start_extra_lives"));
+ SetResourceAmount(player, RESOURCE_CELLS,
+ PlayerTemplate_GetFloatValue(template,
+ "start_ammo_vaporizer_cells"));
+ if (PlayerTemplate_GetFloatValue(template, "unlimited_ammo"))
+ {
+ player.items |= IT_UNLIMITED_AMMO;
+ }
+ return;
+ }
// Give health, armor and ammo.
SetResourceAmount(player, RESOURCE_HEALTH,
PlayerTemplate_GetFloatValue(template, "start_health"));
SetResourceAmount(player, RESOURCE_FUEL,
PlayerTemplate_GetFloatValue(template, "start_ammo_fuel"));
}
- if (autocvar_g_instagib == 1)
- {
- return;
- }
// Give weapons.
if (PlayerTemplate_GetFloatValue(template, "default_start_weapons"))
{