2022-03-30 00:29:38 +02:00
..
2022-03-12 01:27:19 +01:00
2022-03-09 23:36:34 +01:00
2022-03-25 22:43:49 +01:00
2022-03-22 16:16:48 +01:00
2022-03-16 19:48:00 +01:00
2022-03-30 00:29:38 +02:00

Small scripts

Simple drag and drop scripts

change_team_names.gsc

Change the team names to custom names depending on the game mode

disable_self_explosive_damage.gsc

Prevents players from dying to their own grenades and rockets.
Note that if you shoot enough rockets (around 20/30) you can still kill yourself.
This also doesn't prevent players from killing themselves when they hold a frag grenade in their hands.

display_player_stats.gsc

Display the player's killstreak, total kills and deaths on top of the screen

Image

image

get_player_guid.gsc

Print the GUID of a player in the console whenever he connects and whenever he chooses/changes class.

give_perks_on_spawn.gsc

Gives perks to a player whenever he spawns if he doesn't already have them.
This script has been written to give sleight of hand and quickdraw even if you have other perks like overkill (carry two primary weapons).
You can find the list of perks and pro perks in perktable.csv

hardcore_tweaks.gsc

The hardcore mode replaces some game functionalities like enabling friendly fire or disabling killcams.
With this script you can override the tweaks the hardcore mode brings.

kill_players_under_map.gsc

This is a script that kills players when they are under the map.
Some maps don't have a script to kill players under the map and they can exploit it to kill players while being under the map.
Go under the map on the barrier and check the console to get the value to check.
Then open the in-game console and type mapname to get the map name.
Finally simply add a case to the switch (map_name) with the mapname value as the case and the self.origin[2] value as the returned value.

kill_stuck_bots.gsc

This is a temporary solution to inactive bots or bots stuck in corners on custom maps.
This checks for bots kills and deaths every 30 seconds. If they didn't do any kill or didn't die in 30 seconds they're considered inactive/stuck and they're killed.
Obviously a better way to do this would be checking for their positions or removing bad spawns on the map or creating waypoints for the map.
This is just a quick temporary solution that works for me.

show_text_on_first_spawn.gsc

Display a text to a player when it's the first time he spawns in a match.
This can be used to display a specific rule, a warning or just a message.