PROJECT: Contributions of var & command descriptions

Re: PROJECT: Contributions of var & command descriptions

Postby Shaun » 08 Apr 2013, 20:18

Added the reason argument to kick, ban and mute and added the description for all the teamkill vars and some other commands.

{l Code}: {l Select All Code}
setdesc "ban" "ban a player from the server with an optional reason" "<clientnum> [<text>]"
setdesc "kick" "kick a player from the server with an optional reason" "<clientnum> [<text>]"
setdesc "mapbalance" "determines if teams are switched on asymmetrical maps after half of the time is over;^n0 = no balance, 1 = balance only in ctf/df/bb, 2 = balance in all modes" "<value>"
setdesc "mute" "mute a player on the server with an optional reason" "<clientnum> [<text>]"
setdesc "teamkillban" "automatically ban player when warned this many times" "<value>"
setdesc "teamkillkick" "automatically kick player when warned this many times" "<value>"
setdesc "teamkillpenalty" "subtract this*fragbonus from the players points" "<value>"
setdesc "teamkillrestore" "restore the team score as if the teamkiller was never there if the point loss of the team was greater than this" "<value>"
setdesc "teamkilltime" "time threshold in which the teamkills are counted" "<minutes>"
setdesc "teamkillwarn" "the limit of teamkills after which the player receives a warning" "<value>"
setdesc "say" "send a message to the global chat" "<text>"
setdesc "saycommand" "write a chat message or command but waits for your affirmation to send it" "<text>"
setdesc "sayteam" "send a message to the team chat" "<text>"

looplist w $weapname [
    setdesc (concatword $w colour) "the colour of the light around the weapon, the ammo and the icon in the weaponlist" "<colour>"
    setdesc (concatword $w modes) "modes in which this weapon is allowed or disallowed. Set it as a sum of $modebit* vars;^npositive sum: allow this weapon if one of the declared modes is selected,^nnegative sum: disallow this weapon if one if the declared modes is selected" "<sum>"
    setdesc (concatword $w muts) "mutators in which this weapon is allowed or disallowed. Set it as a sum of $mutsbit* vars;^npositive sum: allow this weapon if one of the declared mutators is selected,^nnegative sum: disallow this weapon if one of the declared mutators is selected" "<sum>"

    loop n 2 [
        m = (+ $n 1)
        setdesc (concatword $w explcol $m) "the colour of the explosion of a projectile from this weapon" "<colour>"
        setdesc (concatword $w flakcollide $m) "determines collision properties for flak of this type from each firing action (bitwise OR);^nIMPACT_GEOM = 1, BOUNCE_GEOM = 2, IMPACT_PLAYER = 4, BOUNCE_PLAYER = 8, RADIAL_PLAYER = 16, COLLIDE_TRACE = 32, COLLIDE_OWNER = 64, COLLIDE_CONT = 128, COLLIDE_STICK = 256" "<sum>"
        setdesc (concatword $w flakexplcol $m) "the colour of the explosion of flak of this type" "<colour>"
        setdesc (concatword $w flakpartcol $m) "the colour of flak of this type" "<colour>"
        setdesc (concatword $w flakresidual $m) "determines the residual effects for flak of this type from each firing action (bitwise OR);^n0 = off, 1 = burns, 2 = bleeds, 4 = shocks" "<sum>"
        setdesc (concatword $w partcol $m) "the colour of a projectile from this weapon" "<colour>"
        setdesc (concatword $w parttype $m) "the type of projectiles this weapon shoots" "<value>"
        setdesc (concatword $w residual $m) "determines the residual effects of a projectile from each firing action (bitwise OR);^n0 = off, 1 = burns, 2 = bleeds, 4 = shocks" "<sum>"
    ]
]
Shaun
 
Posts: 1
Joined: 07 Apr 2013, 17:20

Re: PROJECT: Contributions of var & command descriptions

Postby arand » 21 Apr 2013, 12:58

Bookkeeping: Everything up to this point has been added to svn.
Thanks!
User avatar
arand
 
Posts: 211
Joined: 26 Mar 2011, 21:42

Re: PROJECT: Contributions of var & command descriptions

Postby srbs » 25 Jul 2013, 06:33

Shaun {l Wrote}:
{l Code}: {l Select All Code}
looplist w $weapname [
    setdesc (concatword $w colour) "the colour of the light around the weapon, the ammo and the icon in the weaponlist" "<colour>"
    setdesc (concatword $w modes) "modes in which this weapon is allowed or disallowed. Set it as a sum of $modebit* vars;^npositive sum: allow this weapon if one of the declared modes is selected,^nnegative sum: disallow this weapon if one if the declared modes is selected" "<sum>"
    setdesc (concatword $w muts) "mutators in which this weapon is allowed or disallowed. Set it as a sum of $mutsbit* vars;^npositive sum: allow this weapon if one of the declared mutators is selected,^nnegative sum: disallow this weapon if one of the declared mutators is selected" "<sum>"

    loop n 2 [
        m = (+ $n 1)
        setdesc (concatword $w explcol $m) "the colour of the explosion of a projectile from this weapon" "<colour>"
        setdesc (concatword $w flakcollide $m) "determines collision properties for flak of this type from each firing action (bitwise OR);^nIMPACT_GEOM = 1, BOUNCE_GEOM = 2, IMPACT_PLAYER = 4, BOUNCE_PLAYER = 8, RADIAL_PLAYER = 16, COLLIDE_TRACE = 32, COLLIDE_OWNER = 64, COLLIDE_CONT = 128, COLLIDE_STICK = 256" "<sum>"
        setdesc (concatword $w flakexplcol $m) "the colour of the explosion of flak of this type" "<colour>"
        setdesc (concatword $w flakpartcol $m) "the colour of flak of this type" "<colour>"
        setdesc (concatword $w flakresidual $m) "determines the residual effects for flak of this type from each firing action (bitwise OR);^n0 = off, 1 = burns, 2 = bleeds, 4 = shocks" "<sum>"
        setdesc (concatword $w partcol $m) "the colour of a projectile from this weapon" "<colour>"
        setdesc (concatword $w parttype $m) "the type of projectiles this weapon shoots" "<value>"
        setdesc (concatword $w residual $m) "determines the residual effects of a projectile from each firing action (bitwise OR);^n0 = off, 1 = burns, 2 = bleeds, 4 = shocks" "<sum>"
    ]
]

+1 for actually using cubescript to mass-set descriptions :)
srbs
 
Posts: 94
Joined: 17 Mar 2011, 07:00

Who is online

Users browsing this forum: No registered users and 1 guest