mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-04-22 14:05:43 +00:00
59 lines
2.5 KiB
Markdown
59 lines
2.5 KiB
Markdown
# 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
|
|
<details>
|
|
<summary>Image</summary>
|
|
|
|

|
|
</details>
|
|
|
|
## 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](https://github.com/chxseh/MW3-GSC-Dump/blob/e9445976df9f91451fa6e5dc3cb4663390aafcec/_raw-files/mp/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 to kill 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 to the `switch (map_name)` with the `mapname` value for 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.
|