The following is a complete listing of all of the link messages that can be SENT TO the VICE sensor:
integer is the numerical value you send in the link message's integer field. Integers are all whole numbers. TRUE=1, FALSE=0.
string is the text you send in the link message's string field. Strings are always in a "text" format.
key is the uuid you send in the link message's key field. Keys are typically in uuid format, although you can get extra functionality by using the field to communicate text and numerical values. This can be accomplished by preceding non uuid values in the key field with (key)
Description self explanatory
Used by informs which VICE sensors the link message is used by (Infantry, Vehicles, Targets, Observers, VICE+TCS -- I,V,T,O,TCS)
integer |
string |
key |
Description |
Used by: |
is_seated |
"seated" |
gunner_key |
associates an avatar's uuid with the combat sensor.
is_seated value of 0, or FALSE, disassociates the av; values >1 or TRUE associate it with gunner_key, which is uuid of avatar. INF gunner_key should be llGetOwner(). |
I, V, TCS |
vice_on |
"vice ctrl" |
"" |
turns VICE on and off.
vice_on value of 0, or FALSE, turns VICE off. All other values turn it on. |
I, V, T, TCS |
gun_fire |
"gun ctrl" |
rez_offsets |
Controls firing of the gun
for full auto mode/weapons, gun_fire value of 0, or FALSE, ceases fire. All other values fires gun.
for semi auto mode/weapons, gun_fire value of 1, or TRUE causes single bullet to be rezzed.
rez_offsets offers a non-default bullet rez position and rotation offset, and is only available in semi-auto mode.
rez_offsets is parsed as a string with 2 comma-separated values: rez_pos_offset and rez_rot_offset. A typical value for rez_offsets might be "<2.3,-0.38,-0.2>,<0.0,0.0,0.0,1.0>", with rez_pos_offset=<2.3,-0.38,-0.2> and rez_rot_offset=<0.0,0.0,0.0,1.0> (zero rotation). In this case, the bullet would fire in the default direction but have a different rez offset position than default. <2.3,-0.38,-0.2> (which is used by the SSG test gun) might be a good rez offset value for a kneeling infantryman. |
I,V,TCS |
reload_state |
"reload" |
"" |
instruct SCG and SMG guns to reload if ammo is depleted.
SCG and SMG will only reload if reload_state is sent with a value of 2 |
I |
bullet_type |
"bullet type" |
"" |
toggles firing modes in INF weapons.
for SCG and SMG, bullet_type value of 0 is semi auto, value of 1 is full auto.
for SSG, bullet_type value of 0 is short rage bullet, value of 1 is long range bullet |
I |
0 |
"stab" |
"" |
initiates melee attack in SCG, SMG, and SSG weapons.
If MLE attack is initiated during reloading, reloading time is reset. |
I |
team |
"vice team" |
"" |
joins a team.
team=0 indicates no team, team 1~4 selects one of 4 possible teams. See "VICE Teams & Channels" for more information. |
I, V, T, O |
channel_type |
"channel" |
channel_password |
joins a combat channel.
channel_type=0 joins the default public combat channel. channel_type=1 joins a private combat channel, specified by channel_password.
using "ff" as a prefix and appending to channel_password allows friendly fire to be turned on. See "VICE Teams & Channels" for more information. |
I, V, T, O |
0 |
"death message" |
death_message |
sets a custom death message that another avatar will see when they kill you.
message is contained in death_message and is limited to 30 characters. |
I, V, T |
0 |
"kamikaze" |
"" |
initiates kamikaze mode.
only aircraft units, and the BLA unit support this feature. Your vehicle will become a bomb that will detonate on collision with any object (except VICE bullets), or the ground. It cannot be turned off once you turn it on. |
V |
bomb_control |
"bomb" |
"" |
sent by control script to instruct bombs to drop.
bomb_control>=0 drops bomb(s). bomb_control=0 will drop all bombs available in the payload, while bomb_control=1,2,3 or 4 instructs rezzer to drop certain bomb in the payload.
reloading time for bombs is 10 seconds once payload is expended. |
I, V |
The following is a complete listing of all of the link messages that are RECEIVED FROM the VICE sensor:
integer is the numerical value received from the incoming link message's integer field. Integers are all whole numbers. TRUE=1, FALSE=0.
string is the text received from the incoming link message's string field. Strings are always in a "text" format.
key is the uuid you received from the incoming link message's key field. Keys are typically in uuid format; VICE uses the key field to send information that can be stored and kept as other variable types.
Description self explanatory
Used by informs which VICE sensors the link message received from(Infantry, Vehicles, Targets, Observers, VICE+TCS -- I,V,T,O,TCS)
integer |
string |
key |
Description |
Used by: |
vice_stats |
"vice stats" |
link_hit |
Combination of all of a unit's VICE combat stats, in one line. received when combat is initialized, or whenever stats change.
vice_stats=(kills&63)<<26 | (deaths&63)<<20 | (hits&4095)<<8 | hp&255
This means that the maximum number of kills/deaths is 63 each, hits (damage dealt to other combatants) goes up to a maximum possible of 4095, and maximum HP is 255. By combining the stats, I believe that overall lag can be reduced, since any script interested in the combat statistics (like a HUD) only has to check for a single link message string. See the table below to for easy access to VICE stats parsing.
link_hit indicates the link that an incoming bullet collided with whenever HP has decreased. For splash damage (bombs etc) link_hit="-1" (LINK_SET). Otherwise, link_hit should always equal "1" for attached infantry guns, which means that the "avatar link" was hit. |
I, V, T |
reload_state |
"reload" |
"" |
received to indicate ammunition status of SCG, SMG, SSG, and CAN.
reload_state=0 indicates ammo is depleted (SCG and SMG only), reload_state=1 indicates reload is complete and gun is ready to fire (SCG,SMG,SSG,CAN). |
I |
overheat_state |
"overheat" |
"" |
received to indicate overheat state of machine gun/cannon (CMG,LMG,HMG)
overheat_state=1, or TRUE indicates the gun is overheated and unable to fire. overheat_state=0, or FALSE indicates the gun is able to fire. Sent by only one gun to reduce link message chatter. |
I,V |
crash_code |
"crash" |
killer_id |
received when the player dies.
See Crash Code table below for listing of all Crash Codes that are sent by VICE sensors |
I,V,T,TCS |
bomb_contol |
"bom" |
"" |
received after a bomb is reloaded.
bomb_control=-1,-2,-3,-4 received by the bomb the rezzer to indicate which bomb is ready to be dropped again, after reloading finishes. |
I,V |
13 |
victim_id |
gunner_id |
received from the observer script after a non-friendly-fire kill or suicide
informs player that victim_id has been killed by gunner_id. suicide is (victim_id==gunner_id) |
O |
-13 |
victim_id |
gunner_id |
received from the observer script after a friendly-fire kill
informs player that victim_id has been killed by gunner_id, and that they were on the same team (any nonzero team) |
O |
The following is a complete listing of all of the Crash Code integers received from the INF, Vehicle, and Target sensors within a "crash" link message:
crash_code is the numerical integer value received in the link message's integer field that can be extrapolated from the "crash" link message. Integers are all whole numbers.
Explanation of what the integer value stands for.
crash_code |
Explanation |
0 |
uncrashed (unit regenerated) |
1 |
TCS initiated crash |
3+ |
VICE initiated crash |
3 |
death by SCG |
4 |
death by LMG |
5 |
death by HMG |
6 |
death by CAN |
7 |
death by SMG |
8 |
death by SSG |
9 |
death by MLE |
10 |
death by CMG |
13 |
death by SMB |
14 |
death by MDB |
15 |
death by LGB |
16 |
death by TRP |
17 |
death by KMK |
18 |
death by CMB |
|