aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-08-10 04:16:31 +1000
committerDavid Walter Seikel2014-08-10 04:16:31 +1000
commita026b3c6cbcbe911ef1ca506c1a6dd22feeb3568 (patch)
tree3f90ab6c2368626fbb765b582e4c71d07a11110c
parentTODO++ (diff)
downloadSledjHamr-a026b3c6cbcbe911ef1ca506c1a6dd22feeb3568.zip
SledjHamr-a026b3c6cbcbe911ef1ca506c1a6dd22feeb3568.tar.gz
SledjHamr-a026b3c6cbcbe911ef1ca506c1a6dd22feeb3568.tar.bz2
SledjHamr-a026b3c6cbcbe911ef1ca506c1a6dd22feeb3568.tar.xz
Got most of the LSL constants now, except the OS ones.
-rw-r--r--lib/LSL.lua434
1 files changed, 366 insertions, 68 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua
index 1b6a8bd..1fadb65 100644
--- a/lib/LSL.lua
+++ b/lib/LSL.lua
@@ -235,22 +235,134 @@ local constants =
235 newConst("float", "RAD_TO_DEG", 180.0 / LSL.PI), -- 57.2957795131 235 newConst("float", "RAD_TO_DEG", 180.0 / LSL.PI), -- 57.2957795131
236 newConst("float", "SQRT2", 1.4142135623730950488016887242097), 236 newConst("float", "SQRT2", 1.4142135623730950488016887242097),
237 237
238 newConst("integer", "CHANGED_INVENTORY", 0x001), 238 newConst("integer", "AGENT_FLYING", 0x0001),
239 newConst("integer", "CHANGED_COLOR", 0x002), 239 newConst("integer", "AGENT_ATTACHMENTS", 0x0002),
240 newConst("integer", "CHANGED_SHAPE", 0x004), 240 newConst("integer", "AGENT_SCRIPTED", 0x0004),
241 newConst("integer", "CHANGED_SCALE", 0x008), 241 newConst("integer", "AGENT_MOUSELOOK", 0x0008),
242 newConst("integer", "CHANGED_TEXTURE", 0x010), 242 newConst("integer", "AGENT_SITTING", 0x0010),
243 newConst("integer", "CHANGED_LINK", 0x020), 243 newConst("integer", "AGENT_ON_OBJECT", 0x0020),
244 newConst("integer", "CHANGED_ALLOWED_DROP", 0x040), 244 newConst("integer", "AGENT_AWAY", 0x0040),
245 newConst("integer", "CHANGED_OWNER", 0x080), 245 newConst("integer", "AGENT_WALKING", 0x0080),
246 newConst("integer", "CHANGED_REGION", 0x100), 246 newConst("integer", "AGENT_IN_AIR", 0x0100),
247 newConst("integer", "CHANGED_TELEPORT", 0x200), 247 newConst("integer", "AGENT_TYPING", 0x0200),
248 newConst("integer", "CHANGED_REGION_START", 0x400), 248 newConst("integer", "AGENT_CROUCHING", 0x0400),
249 newConst("integer", "CHANGED_MEDIA", 0x800), 249 newConst("integer", "AGENT_BUSY", 0x0800),
250 newConst("integer", "AGENT_ALWAYS_RUN", 0x1000),
251
252 newConst("integer", "ATTACH_CHEST", 1),
253 newConst("integer", "ATTACH_HEAD", 2),
254 newConst("integer", "ATTACH_LSHOULDER", 3),
255 newConst("integer", "ATTACH_RSHOULDER", 4),
256 newConst("integer", "ATTACH_LHAND", 5),
257 newConst("integer", "ATTACH_RHAND", 6),
258 newConst("integer", "ATTACH_LFOOT", 7),
259 newConst("integer", "ATTACH_RFOOT", 8),
260 newConst("integer", "ATTACH_BACK", 9),
261 newConst("integer", "ATTACH_PELVIS", 10),
262 newConst("integer", "ATTACH_MOUTH", 11),
263 newConst("integer", "ATTACH_CHIN", 12),
264 newConst("integer", "ATTACH_LEAR", 13),
265 newConst("integer", "ATTACH_REAR", 14),
266 newConst("integer", "ATTACH_LEYE", 15),
267 newConst("integer", "ATTACH_REYE", 16),
268 newConst("integer", "ATTACH_NOSE", 17),
269 newConst("integer", "ATTACH_RUARM", 18),
270 newConst("integer", "ATTACH_RLARM", 19),
271 newConst("integer", "ATTACH_LUARM", 20),
272 newConst("integer", "ATTACH_LLARM", 21),
273 newConst("integer", "ATTACH_RHIP", 22),
274 newConst("integer", "ATTACH_RULEG", 23),
275 newConst("integer", "ATTACH_RLLEG", 24),
276 newConst("integer", "ATTACH_LHIP", 25),
277 newConst("integer", "ATTACH_LULEG", 26),
278 newConst("integer", "ATTACH_LLLEG", 27),
279 newConst("integer", "ATTACH_BELLY", 28),
280 newConst("integer", "ATTACH_RPEC", 29),
281 newConst("integer", "ATTACH_LPEC", 30),
282 newConst("integer", "ATTACH_HUD_CENTER_2", 31),
283 newConst("integer", "ATTACH_HUD_TOP_RIGHT", 32),
284 newConst("integer", "ATTACH_HUD_TOP_CENTER", 33),
285 newConst("integer", "ATTACH_HUD_TOP_LEFT", 34),
286 newConst("integer", "ATTACH_HUD_CENTER_1", 35),
287 newConst("integer", "ATTACH_HUD_BOTTOM_LEFT", 36),
288 newConst("integer", "ATTACH_HUD_BOTTOM", 37),
289 newConst("integer", "ATTACH_HUD_BOTTOM_RIGHT",38),
290
291 newConst("integer", "CAMERA_PITCH", 0),
292 newConst("integer", "CAMERA_FOCUS_OFFSET", 1),
293 newConst("integer", "CAMERA_FOCUS_OFFSET_X", 2),
294 newConst("integer", "CAMERA_FOCUS_OFFSET_Y", 3),
295 newConst("integer", "CAMERA_FOCUS_OFFSET_Z", 4),
296 newConst("integer", "CAMERA_POSITION_LAG", 5),
297 newConst("integer", "CAMERA_FOCUS_LAG", 6),
298 newConst("integer", "CAMERA_DISTANCE", 7),
299 newConst("integer", "CAMERA_BEHINDNESS_ANGLE", 8),
300 newConst("integer", "CAMERA_BEHINDNESS_LAG", 9),
301 newConst("integer", "CAMERA_POSITION_THRESHOLD", 10),
302 newConst("integer", "CAMERA_FOCUS_THRESHOLD", 11),
303 newConst("integer", "CAMERA_ACTIVE", 12),
304 newConst("integer", "CAMERA_POSITION", 13),
305 newConst("integer", "CAMERA_POSITION_X", 14),
306 newConst("integer", "CAMERA_POSITION_Y", 15),
307 newConst("integer", "CAMERA_POSITION_Z", 16),
308 newConst("integer", "CAMERA_FOCUS", 17),
309 newConst("integer", "CAMERA_FOCUS_X", 18),
310 newConst("integer", "CAMERA_FOCUS_Y", 19),
311 newConst("integer", "CAMERA_FOCUS_Z", 20),
312 newConst("integer", "CAMERA_POSITION_LOCKED", 21),
313 newConst("integer", "CAMERA_FOCUS_LOCKED", 22),
314
315 newConst("integer", "CHANGED_INVENTORY", 0x0001),
316 newConst("integer", "CHANGED_COLOR", 0x0002),
317 newConst("integer", "CHANGED_SHAPE", 0x0004),
318 newConst("integer", "CHANGED_SCALE", 0x0008),
319 newConst("integer", "CHANGED_TEXTURE", 0x0010),
320 newConst("integer", "CHANGED_LINK", 0x0020),
321 newConst("integer", "CHANGED_ALLOWED_DROP", 0x0040),
322 newConst("integer", "CHANGED_OWNER", 0x0080),
323 newConst("integer", "CHANGED_REGION", 0x0100),
324 newConst("integer", "CHANGED_TELEPORT", 0x0200),
325 newConst("integer", "CHANGED_REGION_START", 0x0400),
326 newConst("integer", "CHANGED_MEDIA", 0x0800),
327
328 newConst("integer", "CLICK_ACTION_NONE", 0),
329 newConst("integer", "CLICK_ACTION_TOUCH", 0),
330 newConst("integer", "CLICK_ACTION_SIT", 1),
331 newConst("integer", "CLICK_ACTION_BUY", 2),
332 newConst("integer", "CLICK_ACTION_PAY", 3),
333 newConst("integer", "CLICK_ACTION_OPEN", 4),
334 newConst("integer", "CLICK_ACTION_PLAY", 5),
335 newConst("integer", "CLICK_ACTION_OPEN_MEDIA",6),
336
337 newConst("integer", "CONTROL_FWD", 0x0001),
338 newConst("integer", "CONTROL_BACK", 0x0002),
339 newConst("integer", "CONTROL_LEFT", 0x0004),
340 newConst("integer", "CONTROL_RIGHT", 0x0008),
341 newConst("integer", "CONTROL_UP", 0x0010),
342 newConst("integer", "CONTROL_DOWN", 0x0020),
343 newConst("integer", "CONTROL_ROT_LEFT", 0x0100),
344 newConst("integer", "CONTROL_ROT_RIGHT", 0x0200),
345 newConst("integer", "CONTROL_LBUTTON", 0x10000000),
346 newConst("integer", "CONTROL_ML_LBUTTON", 0x40000000),
347
348 newConst("integer", "DATA_ONLINE", 1),
349 newConst("integer", "DATA_NAME", 2),
350 newConst("integer", "DATA_BORN", 3),
351 newConst("integer", "DATA_RATING", 4),
352 newConst("integer", "DATA_SIM_POS", 5),
353 newConst("integer", "DATA_SIM_STATUS", 6),
354 newConst("integer", "DATA_SIM_RATING", 7),
355 newConst("integer", "DATA_PAYINFO", 8),
356 newConst("integer", "DATA_SIM_RELEASE", 128),
250 357
251 newConst("integer", "DEBUG_CHANNEL", 2147483647), 358 newConst("integer", "DEBUG_CHANNEL", 2147483647),
252 newConst("integer", "PUBLIC_CHANNEL", 0), 359 newConst("integer", "PUBLIC_CHANNEL", 0),
253 360
361 newConst("integer", "HTTP_METHOD", 0),
362 newConst("integer", "HTTP_MIMETYPE", 1),
363 newConst("integer", "HTTP_BODY_MAXLENGTH", 2),
364 newConst("integer", "HTTP_VERIFY_CERT", 3),
365
254 newConst("integer", "INVENTORY_ALL", -1), 366 newConst("integer", "INVENTORY_ALL", -1),
255 newConst("integer", "INVENTORY_NONE", -1), 367 newConst("integer", "INVENTORY_NONE", -1),
256 newConst("integer", "INVENTORY_TEXTURE", 0), 368 newConst("integer", "INVENTORY_TEXTURE", 0),
@@ -264,6 +376,17 @@ local constants =
264 newConst("integer", "INVENTORY_ANIMATION", 20), 376 newConst("integer", "INVENTORY_ANIMATION", 20),
265 newConst("integer", "INVENTORY_GESTURE", 21), 377 newConst("integer", "INVENTORY_GESTURE", 21),
266 378
379 newConst("integer", "LAND_LEVEL", 0),
380 newConst("integer", "LAND_RAISE", 1),
381 newConst("integer", "LAND_LOWER", 2),
382 newConst("integer", "LAND_SMOOTH", 3),
383 newConst("integer", "LAND_NOISE", 4),
384 newConst("integer", "LAND_REVERT", 5),
385
386 newConst("integer", "LAND_SMALL_BRUSH", 1),
387 newConst("integer", "LAND_MEDIUM_BRUSH", 2),
388 newConst("integer", "LAND_LARGE_BRUSH", 3),
389
267 newConst("integer", "ALL_SIDES", -1), 390 newConst("integer", "ALL_SIDES", -1),
268 newConst("integer", "LINK_SET", -1), 391 newConst("integer", "LINK_SET", -1),
269 newConst("integer", "LINK_ROOT", 1), 392 newConst("integer", "LINK_ROOT", 1),
@@ -271,6 +394,21 @@ local constants =
271 newConst("integer", "LINK_ALL_CHILDREN", -3), 394 newConst("integer", "LINK_ALL_CHILDREN", -3),
272 newConst("integer", "LINK_THIS", -4), 395 newConst("integer", "LINK_THIS", -4),
273 396
397 newConst("integer", "LIST_STAT_RANGE", 0),
398 newConst("integer", "LIST_STAT_MIN", 1),
399 newConst("integer", "LIST_STAT_MAX", 2),
400 newConst("integer", "LIST_STAT_MEAN", 3),
401 newConst("integer", "LIST_STAT_MEDIAN", 4),
402 newConst("integer", "LIST_STAT_STD_DEV", 5),
403 newConst("integer", "LIST_STAT_SUM", 6),
404 newConst("integer", "LIST_STAT_SUM_SQUARES", 7),
405 newConst("integer", "LIST_STAT_NUM_COUNT", 8),
406 newConst("integer", "LIST_STAT_GEOMETRIC_MEAN", 9),
407 newConst("integer", "LIST_STAT_HARMONIC_MEAN", 100),
408
409 newConst("integer", "PAY_HIDE", -1),
410 newConst("integer", "PAY_DEFAULT", -2),
411
274 newConst("integer", "PERM_ALL", 0x7FFFFFFF), 412 newConst("integer", "PERM_ALL", 0x7FFFFFFF),
275 newConst("integer", "PERM_COPY", 0x00008000), 413 newConst("integer", "PERM_COPY", 0x00008000),
276 newConst("integer", "PERM_MODIFY", 0x00004000), 414 newConst("integer", "PERM_MODIFY", 0x00004000),
@@ -283,37 +421,108 @@ local constants =
283 newConst("integer", "MASK_NEXT", 4), 421 newConst("integer", "MASK_NEXT", 4),
284 newConst("integer", "PERMISSION_DEBIT", 0x0002), 422 newConst("integer", "PERMISSION_DEBIT", 0x0002),
285 newConst("integer", "PERMISSION_TAKE_CONTROLS", 0x0004), 423 newConst("integer", "PERMISSION_TAKE_CONTROLS", 0x0004),
424 newConst("integer", "PERMISSION_REMAP_CONTROLS", 0x0008),
286 newConst("integer", "PERMISSION_TRIGGER_ANIMATION", 0x0010), 425 newConst("integer", "PERMISSION_TRIGGER_ANIMATION", 0x0010),
287 newConst("integer", "PERMISSION_ATTACH", 0x0020), 426 newConst("integer", "PERMISSION_ATTACH", 0x0020),
427 newConst("integer", "PERMISSION_RELEASE_OWNERSHIP", 0x0040),
288 newConst("integer", "PERMISSION_CHANGE_LINKS", 0x0080), 428 newConst("integer", "PERMISSION_CHANGE_LINKS", 0x0080),
429 newConst("integer", "PERMISSION_CHANGE_JOINTS", 0x0100),
430 newConst("integer", "PERMISSION_CHANGE_PERMISSIONS", 0x0200),
289 newConst("integer", "PERMISSION_TRACK_CAMERA", 0x0400), 431 newConst("integer", "PERMISSION_TRACK_CAMERA", 0x0400),
290 newConst("integer", "PERMISSION_CONTRAL_CAMERA", 0x0800), 432 newConst("integer", "PERMISSION_CONTROL_CAMERA", 0x0800),
291 433
292 newConst("integer", "AGENT", 0x01), 434 newConst("integer", "AGENT", 0x0001),
293 newConst("integer", "ACTIVE", 0x02), 435 newConst("integer", "AGENT_BY_LEGACY_NAME", 0x0001),
294 newConst("integer", "PASSIVE", 0x04), 436 newConst("integer", "ACTIVE", 0x0002),
295 newConst("integer", "SCRIPTED", 0x08), 437 newConst("integer", "PASSIVE", 0x0004),
438 newConst("integer", "SCRIPTED", 0x0008),
439 newConst("integer", "AGENT_BY_USERNAME", 0x0010),
440
441 newConst("integer", "ANIM_ON", 0x0001),
442 newConst("integer", "LOOP", 0x0002),
443 newConst("integer", "REVERSE", 0x0004),
444 newConst("integer", "PING_PONG", 0x0008),
445 newConst("integer", "SMOOTH", 0x0010),
446 newConst("integer", "ROTATE", 0x0020),
447 newConst("integer", "SCALE", 0x0040),
296 448
297 newConst("integer", "OBJECT_UNKNOWN_DETAIL", -1), 449 newConst("integer", "OBJECT_UNKNOWN_DETAIL", -1),
450 newConst("integer", "OBJECT_NAME", 1),
451 newConst("integer", "OBJECT_DESC", 2),
452 newConst("integer", "OBJECT_POS", 3),
453 newConst("integer", "OBJECT_ROT", 4),
454 newConst("integer", "OBJECT_VELOCITY", 5),
455 newConst("integer", "OBJECT_OWNER", 6),
456 newConst("integer", "OBJECT_GROUP", 7),
457 newConst("integer", "OBJECT_CREATOR", 8),
458
459 newConst("integer", "PARCEL_COUNT_TOTAL", 0),
460 newConst("integer", "PARCEL_COUNT_OWNER", 1),
461 newConst("integer", "PARCEL_COUNT_GROUP", 2),
462 newConst("integer", "PARCEL_COUNT_OTHER", 3),
463 newConst("integer", "PARCEL_COUNT_SELECTED", 4),
464 newConst("integer", "PARCEL_COUNT_TEMP", 5),
465
466 newConst("integer", "PARCEL_DETAILS_NAME", 0),
467 newConst("integer", "PARCEL_DETAILS_DESC", 1),
468 newConst("integer", "PARCEL_DETAILS_OWNER", 2),
469 newConst("integer", "PARCEL_DETAILS_GROUP", 3),
470 newConst("integer", "PARCEL_DETAILS_AREA", 4),
471 newConst("integer", "PARCEL_DETAILS_ID", 5),
472
473 newConst("integer", "PARCEL_FLAG_ALLOW_FLY", 0x0001),
474 newConst("integer", "PARCEL_FLAG_ALLOW_SCRIPTS", 0x0002),
475 newConst("integer", "PARCEL_FLAG_ALLOW_LANDMARK", 0x0008),
476 newConst("integer", "PARCEL_FLAG_ALLOW_TERRAFORM", 0x0010),
477 newConst("integer", "PARCEL_FLAG_ALLOW_DAMAGE", 0x0020),
478 newConst("integer", "PARCEL_FLAG_ALLOW_CREATE_OBJECTS", 0x0040),
479 newConst("integer", "PARCEL_FLAG_USE_ACCESS_GROUP", 0x0100),
480 newConst("integer", "PARCEL_FLAG_USE_ACCESS_LIST", 0x0200),
481 newConst("integer", "PARCEL_FLAG_USE_BAN_LIST", 0x0400),
482 newConst("integer", "PARCEL_FLAG_USE_LAND_PASS_LIST", 0x0800),
483 newConst("integer", "PARCEL_FLAG_LOCAL_SOUND_ONLY", 0x8000),
484 newConst("integer", "PARCEL_FLAG_RESTRICT_PUSHOBJECT", 0x00200000),
485 newConst("integer", "PARCEL_FLAG_ALLOW_GROUP_SCRIPTS", 0x02000000),
486 newConst("integer", "PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS", 0x04000000),
487 newConst("integer", "PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY", 0x08000000),
488 newConst("integer", "PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY", 0x10000000),
489
490 newConst("integer", "PARCEL_MEDIA_COMMAND_STOP", 0),
491 newConst("integer", "PARCEL_MEDIA_COMMAND_PAUSE", 1),
492 newConst("integer", "PARCEL_MEDIA_COMMAND_PLAY", 2),
493 newConst("integer", "PARCEL_MEDIA_COMMAND_LOOP", 3),
494 newConst("integer", "PARCEL_MEDIA_COMMAND_TEXTURE", 4),
495 newConst("integer", "PARCEL_MEDIA_COMMAND_URL", 5),
496 newConst("integer", "PARCEL_MEDIA_COMMAND_TIME", 6),
497 newConst("integer", "PARCEL_MEDIA_COMMAND_AGENT", 7),
498 newConst("integer", "PARCEL_MEDIA_COMMAND_UNLOAD", 8),
499 newConst("integer", "PARCEL_MEDIA_COMMAND_AUTO_ALIGN",9),
500 newConst("integer", "PARCEL_MEDIA_COMMAND_TYPE", 10),
501 newConst("integer", "PARCEL_MEDIA_COMMAND_SIZE", 11),
502 newConst("integer", "PARCEL_MEDIA_COMMAND_DESC", 12),
298 503
299 newConst("integer", "PRIM_BUMP_SHINY", 19), 504 newConst("integer", "PRIM_TYPE_OLD", 1),
300 newConst("integer", "PRIM_COLOR", 18),
301 newConst("integer", "PRIM_FLEXIBLE", 21),
302 newConst("integer", "PRIM_FULLBRIGHT", 20),
303 newConst("integer", "PRIM_GLOW", 25),
304 newConst("integer", "PRIM_MATERIAL", 2), 505 newConst("integer", "PRIM_MATERIAL", 2),
305 newConst("integer", "PRIM_PHANTOM", 5),
306 newConst("integer", "PRIM_PHYSICS", 3), 506 newConst("integer", "PRIM_PHYSICS", 3),
307 newConst("integer", "PRIM_POINT_LIGHT", 23), 507 newConst("integer", "PRIM_TEMP_ON_REZ", 4),
508 newConst("integer", "PRIM_PHANTOM", 5),
308 newConst("integer", "PRIM_POSITION", 6), 509 newConst("integer", "PRIM_POSITION", 6),
309 newConst("integer", "PRIM_ROTATION", 8),
310 newConst("integer", "PRIM_SIZE", 7), 510 newConst("integer", "PRIM_SIZE", 7),
311 newConst("integer", "PRIM_TEMP_ON_REZ", 4), 511 newConst("integer", "PRIM_ROTATION", 8),
312 newConst("integer", "PRIM_TYPE", 9), 512 newConst("integer", "PRIM_TYPE", 9),
313 newConst("integer", "PRIM_TYPE_OLD", 1),
314 newConst("integer", "PRIM_TEXGEN", 22),
315 newConst("integer", "PRIM_TEXTURE", 17), 513 newConst("integer", "PRIM_TEXTURE", 17),
514 newConst("integer", "PRIM_COLOR", 18),
515 newConst("integer", "PRIM_BUMP_SHINY", 19),
516 newConst("integer", "PRIM_FULLBRIGHT", 20),
517 newConst("integer", "PRIM_FLEXIBLE", 21),
518 newConst("integer", "PRIM_TEXGEN", 22),
519 newConst("integer", "PRIM_POINT_LIGHT", 23),
520 newConst("integer", "PRIM_CAST_SHADOWS", 24),
521 newConst("integer", "PRIM_GLOW", 25),
316 newConst("integer", "PRIM_TEXT", 26), 522 newConst("integer", "PRIM_TEXT", 26),
523 newConst("integer", "PRIM_NAME", 27),
524 newConst("integer", "PRIM_DESC", 28),
525 newConst("integer", "PRIM_ROT_LOCAL", 29),
317 526
318 newConst("integer", "PRIM_BUMP_NONE", 0), 527 newConst("integer", "PRIM_BUMP_NONE", 0),
319 newConst("integer", "PRIM_BUMP_BRIGHT", 1), 528 newConst("integer", "PRIM_BUMP_BRIGHT", 1),
@@ -348,6 +557,30 @@ local constants =
348 newConst("integer", "PRIM_MATERIAL_RUBBER", 6), 557 newConst("integer", "PRIM_MATERIAL_RUBBER", 6),
349 newConst("integer", "PRIM_MATERIAL_LIGHT", 7), 558 newConst("integer", "PRIM_MATERIAL_LIGHT", 7),
350 559
560 newConst("integer", "PRIM_MEDIA_ALT_IMAGE_ENABLE", 0),
561 newConst("integer", "PRIM_MEDIA_CONTROLS", 1),
562 newConst("integer", "PRIM_MEDIA_CURRENT_URL", 2),
563 newConst("integer", "PRIM_MEDIA_HOME_URL", 3),
564 newConst("integer", "PRIM_MEDIA_AUTO_LOOP", 4),
565 newConst("integer", "PRIM_MEDIA_AUTO_PLAY", 5),
566 newConst("integer", "PRIM_MEDIA_AUTO_SCALE", 6),
567 newConst("integer", "PRIM_MEDIA_AUTO_ZOOM", 7),
568 newConst("integer", "PRIM_MEDIA_FIRST_CLICK_INTERACT",8),
569 newConst("integer", "PRIM_MEDIA_WIDTH_PIXELS", 9),
570 newConst("integer", "PRIM_MEDIA_HEIGHT_PIXELS", 10),
571 newConst("integer", "PRIM_MEDIA_WHITELIST_ENABLE", 11),
572 newConst("integer", "PRIM_MEDIA_WHITELIST", 12),
573 newConst("integer", "PRIM_MEDIA_PERMS_INTERACT", 13),
574 newConst("integer", "PRIM_MEDIA_PERMS_CONTROL", 14),
575
576 newConst("integer", "PRIM_MEDIA_CONTROLS_STANDARD", 0),
577 newConst("integer", "PRIM_MEDIA_CONTROLS_MINI", 1),
578
579 newConst("integer", "PRIM_MEDIA_PERM_NONE", 0),
580 newConst("integer", "PRIM_MEDIA_PERM_OWNER", 1),
581 newConst("integer", "PRIM_MEDIA_PERM_GROUP", 2),
582 newConst("integer", "PRIM_MEDIA_PERM_ANYONE", 4),
583
351 newConst("integer", "PRIM_SCULPT_TYPE_SPHERE", 1), 584 newConst("integer", "PRIM_SCULPT_TYPE_SPHERE", 1),
352 newConst("integer", "PRIM_SCULPT_TYPE_TORUS", 2), 585 newConst("integer", "PRIM_SCULPT_TYPE_TORUS", 2),
353 newConst("integer", "PRIM_SCULPT_TYPE_PLANE", 3), 586 newConst("integer", "PRIM_SCULPT_TYPE_PLANE", 3),
@@ -360,6 +593,9 @@ local constants =
360 newConst("integer", "PRIM_SHINY_MEDIUM", 2), 593 newConst("integer", "PRIM_SHINY_MEDIUM", 2),
361 newConst("integer", "PRIM_SHINY_HIGH", 3), 594 newConst("integer", "PRIM_SHINY_HIGH", 3),
362 595
596 newConst("integer", "PRIM_TEXGEN_DEFAULT", 0),
597 newConst("integer", "PRIM_TEXGEN_PLANAR", 1),
598
363 newConst("integer", "PRIM_TYPE_BOX", 0), 599 newConst("integer", "PRIM_TYPE_BOX", 0),
364 newConst("integer", "PRIM_TYPE_CYLINDER", 1), 600 newConst("integer", "PRIM_TYPE_CYLINDER", 1),
365 newConst("integer", "PRIM_TYPE_PRISM", 2), 601 newConst("integer", "PRIM_TYPE_PRISM", 2),
@@ -369,15 +605,14 @@ local constants =
369 newConst("integer", "PRIM_TYPE_RING", 6), 605 newConst("integer", "PRIM_TYPE_RING", 6),
370 newConst("integer", "PRIM_TYPE_SCULPT", 7), 606 newConst("integer", "PRIM_TYPE_SCULPT", 7),
371 607
372 newConst("integer", "PSYS_PART_FLAGS", 0), 608 newConst("integer", "PSYS_PART_FLAGS", 0),
373 newConst("integer", "PSYS_PART_START_COLOR", 1), 609 newConst("integer", "PSYS_PART_START_COLOR", 1),
374 newConst("integer", "PSYS_PART_START_ALPHA", 2), 610 newConst("integer", "PSYS_PART_START_ALPHA", 2),
375 newConst("integer", "PSYS_PART_END_COLOR", 3), 611 newConst("integer", "PSYS_PART_END_COLOR", 3),
376 newConst("integer", "PSYS_PART_END_ALPHA", 4), 612 newConst("integer", "PSYS_PART_END_ALPHA", 4),
377 newConst("integer", "PSYS_PART_START_SCALE", 5), 613 newConst("integer", "PSYS_PART_START_SCALE", 5),
378 newConst("integer", "PSYS_PART_END_SCALE", 6), 614 newConst("integer", "PSYS_PART_END_SCALE", 6),
379 newConst("integer", "PSYS_PART_MAX_AGE", 7), 615 newConst("integer", "PSYS_PART_MAX_AGE", 7),
380
381 newConst("integer", "PSYS_SRC_ACCEL", 8), 616 newConst("integer", "PSYS_SRC_ACCEL", 8),
382 newConst("integer", "PSYS_SRC_PATTERN", 9), 617 newConst("integer", "PSYS_SRC_PATTERN", 9),
383 newConst("integer", "PSYS_SRC_INNERANGLE", 10), 618 newConst("integer", "PSYS_SRC_INNERANGLE", 10),
@@ -394,21 +629,62 @@ local constants =
394 newConst("integer", "PSYS_SRC_ANGLE_BEGIN", 22), 629 newConst("integer", "PSYS_SRC_ANGLE_BEGIN", 22),
395 newConst("integer", "PSYS_SRC_ANGLE_END", 23), 630 newConst("integer", "PSYS_SRC_ANGLE_END", 23),
396 631
397 newConst("integer", "PSYS_PART_INTERP_COLOR_MASK", 1), 632 newConst("integer", "PSYS_PART_INTERP_COLOR_MASK", 0x0001),
398 newConst("integer", "PSYS_PART_INTERP_SCALE_MASK", 2), 633 newConst("integer", "PSYS_PART_INTERP_SCALE_MASK", 0x0002),
399 newConst("integer", "PSYS_PART_BOUNCE_MASK", 4), 634 newConst("integer", "PSYS_PART_BOUNCE_MASK", 0x0004),
400 newConst("integer", "PSYS_PART_WIND_MASK", 8), 635 newConst("integer", "PSYS_PART_WIND_MASK", 0x0008),
401 newConst("integer", "PSYS_PART_FOLLOW_SRC_MASK", 16), 636 newConst("integer", "PSYS_PART_FOLLOW_SRC_MASK", 0x0010),
402 newConst("integer", "PSYS_PART_FOLLOW_VELOCITY_MASK", 32), 637 newConst("integer", "PSYS_PART_FOLLOW_VELOCITY_MASK", 0x0020),
403 newConst("integer", "PSYS_PART_TARGET_POS_MASK", 64), 638 newConst("integer", "PSYS_PART_TARGET_POS_MASK", 0x0040),
404 newConst("integer", "PSYS_PART_TARGET_LINEAR_MASK", 128), 639 newConst("integer", "PSYS_PART_TARGET_LINEAR_MASK", 0x0080),
405 newConst("integer", "PSYS_PART_EMISSIVE_MASK", 256), 640 newConst("integer", "PSYS_PART_EMISSIVE_MASK", 0x0100),
406 641
407 newConst("integer", "PSYS_SRC_PATTERN_DROP", 1), 642 newConst("integer", "PSYS_SRC_PATTERN_DROP", 0x0001),
408 newConst("integer", "PSYS_SRC_PATTERN_EXPLODE", 2), 643 newConst("integer", "PSYS_SRC_PATTERN_EXPLODE", 0x0002),
409 newConst("integer", "PSYS_SRC_PATTERN_ANGLE", 4), 644 newConst("integer", "PSYS_SRC_PATTERN_ANGLE", 0x0004),
410 newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE", 8), 645 newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE", 0x0008),
411 newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY", 16), 646 newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY", 0x0010),
647
648 newConst("integer", "REGION_FLAG_ALLOW_DAMAGE", 0x0001),
649 newConst("integer", "REGION_FLAG_FIXED_SUN", 0x0010),
650 newConst("integer", "REGION_FLAG_BLOCK_TERRAFORM", 0x0040),
651 newConst("integer", "REGION_FLAG_SANDBOX", 0x0100),
652 newConst("integer", "REGION_FLAG_DISABLE_COLLISIONS", 0x1000),
653 newConst("integer", "REGION_FLAG_DISABLE_PHYSICS", 0x4000),
654 newConst("integer", "REGION_FLAG_BLOCK_FLY", 0x00080000),
655 newConst("integer", "REGION_FLAG_ALLOW_DIRECT_TELEPORT", 0x00100000),
656 newConst("integer", "REGION_FLAG_RESTRICT_PUSHOBJECT", 0x00400000),
657
658 newConst("integer", "REMOTE_DATA_CHANNEL", 1),
659 newConst("integer", "REMOTE_DATA_REQUEST", 2),
660 newConst("integer", "REMOTE_DATA_REPLY", 3),
661
662 newConst("integer", "STRING_TRIM_HEAD", 1),
663 newConst("integer", "STRING_TRIM_TAIL", 2),
664 newConst("integer", "STRING_TRIM", 3),
665
666 newConst("integer", "STATUS_PHYSICS", 0x0001),
667 newConst("integer", "STATUS_ROTATE_X", 0x0002),
668 newConst("integer", "STATUS_ROTATE_Y", 0x0004),
669 newConst("integer", "STATUS_ROTATE_Z", 0x0008),
670 newConst("integer", "STATUS_PHANTOM", 0x0010),
671 newConst("integer", "STATUS_SANDBOX", 0x0020),
672 newConst("integer", "STATUS_BLOCK_GRAB", 0x0040),
673 newConst("integer", "STATUS_DIE_AT_EDGE", 0x0080),
674 newConst("integer", "STATUS_RETURN_AT_EDGE", 0x0100),
675 newConst("integer", "STATUS_CAST_SHADOWS", 0x0200),
676
677 newConst("integer", "TOUCH_INVALID_FACE", 0x7FFFFFFF),
678 newConst("vector", "TOUCH_INVALID_TEXCOORD", {x=-1.0, y=-1.0, z=0.0}),
679 newConst("vector", "TOUCH_INVALID_VECTOR", {x=0.0, y=0.0, z=0.0}),
680
681 newConst("integer", "TYPE_INTEGER", 1),
682 newConst("integer", "TYPE_FLOAT", 2),
683 newConst("integer", "TYPE_STRING", 3),
684 newConst("integer", "TYPE_KEY", 4),
685 newConst("integer", "TYPE_VECTOR", 5),
686 newConst("integer", "TYPE_ROTATION", 6),
687 newConst("integer", "TYPE_INVALID", 0),
412 688
413 newConst("integer", "VEHICLE_FLAG_NO_DEFLECTION_UP", 1), 689 newConst("integer", "VEHICLE_FLAG_NO_DEFLECTION_UP", 1),
414 newConst("integer", "VEHICLE_FLAG_LIMIT_ROLL_ONLY", 2), 690 newConst("integer", "VEHICLE_FLAG_LIMIT_ROLL_ONLY", 2),
@@ -460,25 +736,47 @@ local constants =
460 newConst("integer", "VEHICLE_RANGE_BLOCK", 45), 736 newConst("integer", "VEHICLE_RANGE_BLOCK", 45),
461 newConst("integer", "VEHICLE_ROLL_FRAME", 46), 737 newConst("integer", "VEHICLE_ROLL_FRAME", 46),
462 738
463 newConst("integer", "STRING_TRIM", 3), 739 newConst("integer", "WL_WATER_COLOR", 0),
464 newConst("integer", "STRING_TRIM_HEAD", 1), 740 newConst("integer", "WL_WATER_FOG_DENSITY_EXPONENT", 1),
465 newConst("integer", "STRING_TRIM_TAIL", 2), 741 newConst("integer", "WL_UNDERWATER_FOG_MODIFIER", 2),
742 newConst("integer", "WL_REFLECTION_WAVELET_SCALE", 3),
743 newConst("integer", "WL_FRESNEL_SCALE", 4),
744 newConst("integer", "WL_FRESNEL_OFFSET", 5),
745 newConst("integer", "WL_REFRACT_SCALE_ABOVE", 6),
746 newConst("integer", "WL_REFRACT_SCALE_BELOW", 7),
747 newConst("integer", "WL_BLUR_MULTIPLIER", 8),
748 newConst("integer", "WL_BIG_WAVE_DIRECTION", 9),
749 newConst("integer", "WL_LITTLE_WAVE_DIRECTION", 10),
750 newConst("integer", "WL_NORMAL_MAP_TEXTURE", 11),
751 newConst("integer", "WL_HORIZON", 12),
752 newConst("integer", "WL_HAZE_HORIZON", 13),
753 newConst("integer", "WL_BLUE_DENSITY", 14),
754 newConst("integer", "WL_HAZE_DENSITY", 15),
755 newConst("integer", "WL_DENSITY_MULTIPLIER", 16),
756 newConst("integer", "WL_DISTANCE_MULTIPLIER", 17),
757 newConst("integer", "WL_MAX_ALTITUDE", 18),
758 newConst("integer", "WL_SUN_MOON_COLOR", 19),
759 newConst("integer", "WL_AMBIENT", 20),
760 newConst("integer", "WL_EAST_ANGLE", 21),
761 newConst("integer", "WL_SUN_GLOW_FOCUS", 22),
762 newConst("integer", "WL_SUN_GLOW_SIZE", 23),
763 newConst("integer", "WL_SCENE_GAMMA", 24),
764 newConst("integer", "WL_STAR_BRIGHTNESS", 25),
765 newConst("integer", "WL_CLOUD_COLOR", 26),
766 newConst("integer", "WL_CLOUD_XY_DENSITY", 27),
767 newConst("integer", "WL_CLOUD_COVERAGE", 28),
768 newConst("integer", "WL_CLOUD_SCALE", 29),
769 newConst("integer", "WL_CLOUD_DETAIL_XY_DENSITY", 30),
770 newConst("integer", "WL_CLOUD_SCROLL_X", 31),
771 newConst("integer", "WL_CLOUD_SCROLL_Y", 32),
772 newConst("integer", "WL_CLOUD_SCROLL_Y_LOCK", 33),
773 newConst("integer", "WL_CLOUD_SCROLL_X_LOCK", 34),
774 newConst("integer", "WL_DRAW_CLASSIC_CLOUDS", 35),
775 newConst("integer", "WL_SUN_MOON_POSITION", 36),
466 776
467 newConst("integer", "TRUE", 1), 777 newConst("integer", "TRUE", 1),
468 newConst("integer", "FALSE", 0), 778 newConst("integer", "FALSE", 0),
469 779
470 newConst("integer", "TOUCH_INVALID_FACE", 0x7FFFFFFF),
471 newConst("vector", "TOUCH_INVALID_TEXCOORD", {x=-1.0, y=-1.0, z=0.0}),
472 newConst("vector", "TOUCH_INVALID_VECTOR", {x=0.0, y=0.0, z=0.0}),
473
474 newConst("integer", "TYPE_INTEGER", 1),
475 newConst("integer", "TYPE_FLOAT", 2),
476 newConst("integer", "TYPE_STRING", 3),
477 newConst("integer", "TYPE_KEY", 4),
478 newConst("integer", "TYPE_VECTOR", 5),
479 newConst("integer", "TYPE_ROTATION", 6),
480 newConst("integer", "TYPE_INVALID", 0),
481
482 newConst("string", "NULL_KEY", "00000000-0000-0000-0000-000000000000"), 780 newConst("string", "NULL_KEY", "00000000-0000-0000-0000-000000000000"),
483-- newConst("string", "EOF", "\\n\\n\\n"), -- Corner case, dealt with later. 781-- newConst("string", "EOF", "\\n\\n\\n"), -- Corner case, dealt with later.
484 newConst("string", "EOF", "EndOfFuckingAround"), -- Corner case, dealt with later. 782 newConst("string", "EOF", "EndOfFuckingAround"), -- Corner case, dealt with later.