I was thinking just this second about the scripts. I was not happy with the rules getting dragged in to another topic, so I'm putting them here.
Also I was thinking this could be a discussion on things people use a lot, re script a lot.
For example:
a script just named reborn
I thought of:
getPlayersWithin
- gets a list of players within a distance....This could be used for several things.
isPlayerWithin
-is a player within this distance
damagePlayersWithin
- damages players within a distance by another player
killPlayersWithin
- damages players within a distance by another player <- A LOT
spawnGrenadeExplosion
- spawns an explosion by a player (so kills work)
swapWeapon
- correctly swaps a weapon for another weapon, if they have this weapon
playersWithWeapon
-returns a list of all the players with this weapon
getPlayerPrimarydmweapon
-gets a players Primarydmweapon
setPlayerPrimarydmweapon
-sets a players primary dm weapon
In admin pro I also had a cvars.scr, did anyone know? :P
I was thinking actually
getSplitCvar...which just gets a cvar and splits it up
Code:
getSplitCvar local.cvar local.split:
end waitexec reborn/strings.scr::split (getcvar local.cvar) local.split
strings.scr
maths.scr
files.scr
hud.scr