adding custom kill messages support

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6215 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-04-06 12:21:18 +00:00
parent 7a8bbd462c
commit aee1d4f1f2
9 changed files with 212 additions and 91 deletions
+42 -85
View File
@@ -341,15 +341,6 @@
</arguments>
<return token="R" description="The random value" valueNotes="larger or equal 0 and smaller than A"/>
</command>
<command name="rrnd">
<description>Ranged random value</description>
<arguments>
<argument token="A" description="the lowest value to return" valueNotes=""/>
<argument token="B" description="the upper limit of the random value" valueNotes=""/>
</arguments>
<return token="R" description="The random value" valueNotes="larger or equal to A and smaller than B"/>
</command>
<command name="strcmp">
<description>Determines if two strings are equal.</description>
@@ -1945,42 +1936,10 @@ bind PRINT [ if (strcmp $last_server "") [ remember_server ]
<remarks>
<remark>You won't see any further game chat or hear any more voice com messages from that player.</remark>
</remarks>
<references>
<identifierReference identifier="clearignored"/>
<identifierReference identifier="listignored"/>
<identifierReference identifier="ignoreall"/>
<identifierReference identifier="unignoreall"/>
</references>
</command>
<command name="ignoreall">
<description>Ignores all players currently on the server.</description>
<references>
<identifierReference identifier="ignore"/>
<identifierReference identifier="clearignored"/>
<identifierReference identifier="listignored"/>
<identifierReference identifier="unignoreall"/>
</references>
</command>
<command name="unignoreall">
<description>Un-ignores all players currently on the server.</description>
<references>
<identifierReference identifier="ignore"/>
<identifierReference identifier="clearignored"/>
<identifierReference identifier="listignored"/>
<identifierReference identifier="ignoreall"/>
</references>
</command>
<command name="listignored">
<description>Print a list of all players that you are currently ignoring.</description>
<references>
<identifierReference identifier="ignore"/>
<identifierReference identifier="clearignored"/>
<identifierReference identifier="ignoreall"/>
<identifierReference identifier="unignoreall"/>
</references>
</command>
<command name="clearignored">
@@ -2777,18 +2736,18 @@ Output:
</remarks>
</command>
<command name="countwalls">
<description>Returns the number of solid walls contained into the current selection.</description>
<arguments>
<argument token="T" description="the integer of type of the walls you want to count" valueNotes=" 0 (solid), 1 (corner), 2 (floor heightfield), 3 (ceil heightfield), 4 (empty cube), 5 (semi solid)" />
</arguments>
<examples>
<example>
<code><![CDATA[echo (concat "The selection contains " (countwalls 0) "solid wall(s)")]]></code>
<explanation>Output: The selection contains 3 solid wall(s)</explanation>
</example>
</examples>
</command>
<command name="countwalls">
<description>Returns the number of solid walls contained into the current selection.</description>
<arguments>
<argument token="T" description="the integer of type of the walls you want to count" valueNotes=" 0 (solid), 1 (corner), 2 (floor heightfield), 3 (ceil heightfield), 4 (empty cube), 5 (semi solid)" />
</arguments>
<examples>
<example>
<code><![CDATA[echo (concat "The selection contains " (countwalls 0) "solid wall(s)")]]></code>
<explanation>Output: The selection contains 3 solid wall(s)</explanation>
</example>
</examples>
</command>
<command name="pasteent">
<description>Pastes a previously copied entity.</description>
@@ -3405,37 +3364,6 @@ Output:
<command name="checkmapdependencies">
<description>Find what media the map depends on, this is used for mediapack providers.</description>
</command>
<command name="genhex">
<description>Randomly generates a valid hexadecimal color value.</description>
<examples>
<example>
<code><![CDATA[fogcolour (genhex)]]></code>
<explanation>Example output: Trying hexadecimal color: 0x2FCAF1</explanation>
</example>
</examples>
<references>
<identifierReference identifier="fog"/>
<identifierReference identifier="fogcolour"/>
</references>
</command>
<command name="genwc">
<description>Randomly generates a valid watercolour value.</description>
<examples>
<example>
<code><![CDATA[genwc]]></code>
<explanation>Example output: Trying water color: 2 17 29</explanation>
</example>
</examples>
<remarks>
<remark>You must be in edit-mode for this command to function.</remark>
</remarks>
<references>
<identifierReference identifier="genhex"/>
<identifierReference identifier="watercolour"/>
</references>
</command>
</identifiers>
</section>
@@ -4434,6 +4362,36 @@ Output:
<description>make dead players instantly pop out of existence, instead of falling over and sinking into the ground.</description>
<value token="B" description="BOOL" minValue="0" maxValue="1" defaultValue="0" />
</variable>
<command name="fragmessage">
<description>set the frag message corresponding to a weapon (appearing on the hud or in server logs)</description>
<arguments>
<argument token="G" description="the integer of the gun" valueNotes=" 0 = knife, etc." />
<argument token="M" description="the message you want to appear" valueNotes="ex : subgunned" />
</arguments>
<examples>
<example>
<code>fragmessage 5 sniped // set "sniped" message for frags with sniper. </code>
<explanation>
It will display "you sniped unarmed" on the hud when you frag unarmed with sniper.
In server logs you will get "[127.0.0.1] killer subgunned unarmed".</explanation>
</example>
</examples>
<remarks>
<remark>
This command can be read by both client and server, but the server can't read the cfg if it contains anything else than fragmessage or gibmessage calls.
</remark>
</remarks>
</command>
<command name="gibmessage">
<description>set the gib message corresponding to a weapon (appearing on the hud or in server logs)</description>
<remarks>
<remark>
This command is identical to fragmessage (above)
</remark>
</remarks>
</command>
<variable name="maploaditemlength">
<description>change at what position to truncate the map title string</description>
@@ -5493,7 +5451,6 @@ Output:
<description>Sets the fog and clearing colour.</description>
<references>
<identifierReference identifier="fog"/>
<identifierReference identifier="genhex"/>
</references>
<arguments>
<argument token="C" description="The colour" valueNotes="Hexadecimal colour, default is 0x8099B3"/>