Goodo Prof
.
--- Blackout Edit Log ---
-- Code Reformat Starting Sept. 17, 05 --
-- Aim: To make all modules only use their own internal variables --
-- Edits by Paul Rohde Follow --
-- Sept. 17, 05 --
Console.dba
- Added Module comment header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- No misuse of private variables
Level.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Decided to allow Loading and Saving to file functions to be able to have "friend" status in regard to private variables, in other words, Loading and Saving functions will have direct acess to private variable data
- No misuse of private variables
Loopspeed.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function int "getFPS()" - returns the screen fps that is stored each loop in updateLoopSpeed()
- Added External Function int "FPS_getSetFrameRate()" which returns what the screen refresh rate is set to.
- Added External Function "FPS_setFrameRate(rate as integer) which sets and updates the screen refresh rate if the entered rate is >= 0
- Added External Function int "FPS_getGameSpeed()" which returns the set G_GameSpeed
- Added External Function "FPS_setGameSpeed(rate as integer) which changes the game speed if the given rate is >= 0
- Added External Function float "FPS_getGameRate()" which returns the set G_GameRate
- Added External Function float "FPS_getGameTime()" which returns the set G_GameTime
- Added External Function float "FPS_getLoopConstant()" which returns the G_LoopConstant
- Added External Function "FPS_setLoopConstant(rate as float)" which will set the G_LoopTime variable to the requested value if that value is above zero.
- Added External Function float "FPS_getLoopTime()" which returns the set G_LoopTime
- Added External Function float "FPS_getLoopSpeed()" which returns the set G_LoopSpeed
- Added External Function float "FPS_getLoopSpeed2()" which returns the set G_LoopSpeed2
- No misuse of private variables
camera.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function "CAM_setFOV(camera as integer, FOV as float)" that sets the internal field of view value
- Added External Function float "CAM_getFOV(camera as integer)" returns the internal set value of the FOV
- Added External Function int "CAM_getCameraNum(camera as integer)" returns the actual db camera number of that camera element
- Added External Function "CAM_setPos(camera as integer, pos as TYPE_XYZ)" that sets the internal position of the camera
- Added External Function "CAM_setPosX(camera as integer, xpos as float)" that sets the internal xpos of the camera
- Added External Function "CAM_setPosY(camera as integer, ypos as float)" that sets the internal ypos of the camera
- Added External Function "CAM_setPosZ(camera as integer, zpos as float)" that sets the internal zpos of the camera
- Added External Function "CAM_setPosXYZ(camera as integer, xpos as float, ypos as float, zpos as float)" that sets the internal position of the camera via three values
- Added External Function float "CAM_getPosX(camera as integer)" that returns the Xpos of the specified camera
- Added External Function float "CAM_getPosY(camera as integer)" that returns the Ypos of the specified camera
- Added External Function float "CAM_getPosZ(camera as integer)" that returns the Zpos of the specified camera
- Added External Function "CAM_setRot(camera as integer, rot as TYPE_XYZ)" that sets the internal rotation of the camera
- Added External Function "CAM_setRotX(camera as integer, xpos as float)" that sets the internal xrot of the camera
- Added External Function "CAM_setRotY(camera as integer, ypos as float)" that sets the internal yrot of the camera
- Added External Function "CAM_setRotZ(camera as integer, zpos as float)" that sets the internal zrot of the camera
- Added External Function "CAM_setRotXYZ(camera as integer, xrot as float, yrot as float, zrot as float)" that sets the internal rotation of the camera via three values
- Added External Function float "CAM_getRotX(camera as integer)" that returns the Xrot of the specified camera
- Added External Function float "CAM_getRotY(camera as integer)" that returns the Yrot of the specified camera
- Added External Function float "CAM_getRotZ(camera as integer)" that returns the Zrot of the specified camera
- No misuse of private variables
GeneralHandles.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- No Misuse of private variables
Character.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function int "CHR_getNumCharacters()" returns the G_NumCHaracters value
- Removed Global variable G_Temp, unused
- Added External Function int "CHR_getChrModelNum(chrNum)" returns the db model number of the character
- Added External Function int "CHR_getChrNewtonBody(chrNum as integer)" returns the Newton body number for the character
- Added External Function byte "CHR_getChrLife(chrNum as integer)" returns the characters life value
- Added External Function "CHR_setChrLife(chrNum as integer, life as byte)" sets the characters life value
-- Sept. 18, 05 --
Character.dba
- ReUpdated Module Header
- Added External Function float "CHR_getChrPosX(chrNum as integer)" returns the float X position of the character
- Added External Function float "CHR_getChrPosY(chrNum as integer)" returns the float Y position of the character
- Added External Function float "CHR_getChrPosZ(chrNum as integer)" returns the float Z position of the character
- Added External Function "CHR_setChrRotX(chrNum as integer, xrot as float)" sets the internal x angle of the character
- Added External Function "CHR_setChrRotY(chrNum as integer, yrot as float)" sets the internal y angle of the character
- Added External Function "CHR_setChrRotZ(chrNum as integer, zrot as float)" sets the internal z angle of the character
- Added External Function float "CHR_getChrRotX(chrNum as integer)" returns the float X rotation of the character
- Added External Function float "CHR_getChrRotY(chrNum as integer)" returns the float Y rotation of the character
- Added External Function float "CHR_getChrRotZ(chrNum as integer)" returns the float Z rotation of the character
- Added External Function float "CHR_getChrVelX(chrNum as integer)" returns the float X velocity of the character
- Added External Function float "CHR_getChrVelY(chrNum as integer)" returns the float Y velocity of the character
- Added External Function float "CHR_getChrVelZ(chrNum as integer)" returns the float Z velocity of the character
- Added External Function float "CHR_getChrCrossHairX(chrNum as integer)" returns the float X intersection of the characters crosshair
- Added External Function float "CHR_getChrCrossHairY(chrNum as integer)" returns the float Y intersection of the characters crosshair
- Added External Function float "CHR_getChrCrossHairZ(chrNum as integer)" returns the float Z intersection of the characters crosshair
- Added External Function "CHR_setChrWalkMode(chrNum as integer, mode as integer)" sets the internal walk mode of the character
- Added External Function int "CHR_getChrWalkMode(chrNum as integer)" gets the current walk mode state
- Added External Function int "CHR_getChrOnFloor(chrNum as integer)" returns the internal onFloor state
- Added External Function byte "CHR_getChrAction(chrNum as integer)" gets the current action state of the character
- Added External Function "CHR_setChrAction(chrNum as integer, action as byte)" sets the current action state of the character
-- Sept. 23, 05 --
Character.dba
- ReUpdated Module Header
- Added External Function float "CHR_getChrWeaponZoom(chrNum as integer)" returns the float weaponZoom value of the characters weapon
- Added External Function "CHR_setChrWeaponZoom(chrNum as integer, Zoom as float)" sets the weaponZoom value of the characters weapon
-- Sept. 24, 05 --
Character.dba
- ReUpdated Module Header
- Added External Function int "CHR_getChrWeaponFireTimer(chrNum as integer)" returns the fire timer for the specified character
- Added External Function "CHR_setChrWeaponFireTimer(chrNum as integer, timer as integer)" sets the fire timer for the character
- Added External Function int "CHR_getChrWeapon(chrNum as integer)" returns the current characters weapon
- Added External Function "CHR_setChrWeapon(chrNum as integer, weapon as integer)" sets the current characters weapon
- Added External Function bool "CHR_getChrActive(chrNum as integer)" returns if the character is active
- No misuse of private variables
Player.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function "FPP_setWeaponBobSpeed(speed as float)" sets the bob speed of the players gun
- Added External Function "FPP_setWeaponBobWidth(width as float)" sets the width of the players gun bobing
- Added External Function "FPP_setWeaponBobHeight(height as float)" sets the height of the players gun bobing
- Added External Function int "FPP_getPlayerCamera()" returns G_FPPlayer.camera
- Added External Function dword "FPP_getPlayerCharacter()" returns the internal character number
- Added External Function "FPP_setPlayerCharacter(number as dword)" set the internal character number
-- Edits by Joseph Thomson Follow --
-- Sept. 26, 05 --
Player.dba
- Added External Function dword "FPP_getModelNum()" returns the DBPro model number used to attach guns to
- Added External Function dword "FPP_getHandLimb()" returns the DBPro model limb number used to attach guns to
- Added External Function dword "FPP_getMuzzleFlashTimer()" returns the time that the flash appeared
- Added External Function "FPP_setMuzzleFlashTimer(time as dword)" sets the time that the flash appeared
- Added External Function float "FPP_getRecoilAngle()" returns the angle at which the gun has recoiled
- Added External Function "FPP_setRecoilAngle(ang as float)" sets the angle at which the gun has recoiled
- Added External Function dword "FPP_getWeapon()" returns the weapon that the first person player currently has equipped
- No misuse of private variables
ConfigParsing.dba
- Added Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function string "CFG_getParsedCommand()" returns the command section of a parsed string
- Added External Function dword "CFG_getNumParsedValues()" returns the number of values that were parsed in the string
- Added External Function string "CFG_getParsedValue(index as dword)" returns the specified value section of a parsed string, given that the index isn't out of range
- No misuse of private variables
-- Sept. 28, 05 --
General
- Changed all occurences of the UDT variables "position","velocity","rotation" and variations, to "pos","vel" and "rot", for consisitancy and less broken keyboards
Bullet.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function dword "BUL_getNumCollisions()" returns the number of bullets that have collided with something that loop
- Added External Function word "BUL_getColType(index as dword)" returns the sort of object the bullet collided with
- Added External Function dword "BUL_getColObj(index as dword)" returns the index of the object the bullet collided with
- Added External Function word "BUL_getColObjType(index as dword)" returns the type of the object (within the sub-catagory) that the bullet collided with (eg. stationary or non-stationary)
- Added External Function dword "BUL_getColMat(index as dword)" returns the material of the object collided with
- Added External Function float "BUL_getColPosX(index as dword)" returns the X world space component of the position of the collision
- Added External Function float "BUL_getColPosY(index as dword)" returns the Y world space component of the position of the collision
- Added External Function float "BUL_getColPosZ(index as dword)" returns the Z world space component of the position of the collision
- Added External Function float "BUL_getColVelX(index as dword)" returns the X component of the bullets velocity at the time of the collision
- Added External Function float "BUL_getColVelY(index as dword)" returns the Y component of the bullets velocity at the time of the collision
- Added External Function float "BUL_getColVelZ(index as dword)" returns the Z component of the bullets velocity at the time of the collision
- Added External Function float "BUL_getColNormX(index as dword)" returns the X component of the normal of the collision
- Added External Function float "BUL_getColNormY(index as dword)" returns the Y component of the normal of the collision
- Added External Function float "BUL_getColNormZ(index as dword)" returns the Z component of the normal of the collision
- Added External Function float "BUL_getColPower(index as dword)" returns the power of the bullet involved in the collision
- Added External Function bool "BUL_getColRicochet(index as dword)" returns whether the bullet in the collision ricocheted of not
- No misuse of private variables
Decal.dba
- Added Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function dword "DCL_getBulletHoleImage()" returns the index of the image of a bullet hole, used in decals
- No misuse of private variables
WorldEffects.dba
- Added Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
Particles.dba
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
Games.dba
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
GeneralCurveFunctions.dba
- Updated Module Header
- No misuse of private variables
GeneralString.dba
- Updated Module Header
- No misuse of private variables
HUD.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function bool "HUD_getSpeaking()" returns whether the network speak tool is open
- No misuse of private variables
Material.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function string "MAT_getDefaultMatName()" returns the name of the default material
- Added External Function dword "MAT_getDefaultMatGroupID()" returns the Newton group ID of the default material
- Added External Function dword "MAT_getMaxBulletEffects()" returns the maximum number of bullet effects that can be assigned to one material (this number is a constant, and can only be changed buy editing the code)
- Added External Function dword "MAT_getNumMaterials()" returns the current number of loaded materials (not including the default one)
- Added External Function string "MAT_getMatName(index as dword)" returns the name of a material
- Added External Function dword "MAT_getGroupID(index as dword)" returns the Newton group ID of a material
- Added External Function dword "MAT_getMatBulletEffect(index as dword,effect as byte)" returns the index of the specified particle effect assigned to a material
- Added External Function dword "MAT_getMatBulletEffectQuantity(index as dword,effect as byte)" returns the number of particles released from the specified particle effect assigned to a material
- No misuse of private variables
Music.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
Network.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function bool "NET_getNetStatus()" returns whether the player is acting as HOST or CLIENT
- Added External Function bool "NET_getConnected()" returns whether the player is connected to a network game or not
- Added External Function "NET_setDefaultIP(ip as string)" sets the default local IP (the IP of the player's computer)
- Added External Function "NET_setDefaultHostIP(ip as string)" sets the default host IP (the IP of the host's computer [can be the same as local IP])
- Added External Function "NET_setDefaultPlayers(players as byte)" sets the default maximum number of players that can join a game hosted by the player
- Added External Function "NET_setDefaultName(name as string)" sets the default name given to the player
- Added External Function "NET_setUpdateRate(rate as dword)" sets the number of milliseconds between each transmission of the player's state (position and velocity)
- Added External Function byte "NET_getMaxPlayers()" returns the maximum player index in the G_Player() array. There may not be the same amount of players in the array as the number of indices though
- Added External Function "NET_setPlayerChar(player as dword,char as dword)" sets the character assigned to represent the player in game
- Added External Function dword "NET_getPlayerChar(player as dword)" returns the character assigned to represent the player in game
- Added External Function "NET_setPlayerInGame(player as dword,inGame as boolean)" sets whether the player is in the current game or not (spectating or not)
- Added External Function bool "NET_getPlayerInGame(player as dword)" returns whether the player is in the current game or not (spectating or not)
- Added External Function string "NET_getPlayerName(player as dword)" returns the player's name
- Added External Function dword "NET_getNumTextMessages()" returns the number of text messages currently in the queue
- Added External Function string "NET_getTextMsg(msg as dword)" returns the string of the message specified
- Added External Function string "NET_getTextMsgPlayer(msg as dword)" returns the name of the player who sent the message specified
- Added External Function float "NET_getEventPosX(event as dword)" returns the X component of the position attribute of the event
- Added External Function float "NET_getEventPosY(event as dword)" returns the Y component of the position attribute of the event
- Added External Function float "NET_getEventPosZ(event as dword)" returns the Z component of the position attribute of the event
- Added External Function float "NET_getEventVelX(event as dword)" returns the X component of the velocity attribute of the event
- Added External Function float "NET_getEventVelY(event as dword)" returns the Y component of the velocity attribute of the event
- Added External Function float "NET_getEventVelZ(event as dword)" returns the Z component of the velocity attribute of the event
- Added External Function float "NET_getEventEntityA(event as dword)" returns the index of the A Entity of the event
- Added External Function dword "NET_getEventEntityA(event as dword)" returns the index of the A Entity of the event
- Added External Function dword "NET_getEventEntityAType(event as dword)" returns the type of the A Entity of the event
- Added External Function dword "NET_getEventEntityB(event as dword)" returns the index of the B Entity of the event
- Added External Function dword "NET_getEventEntityBType(event as dword)" returns the type of the B Entity of the event
- No misuse of private variables
The network module was a bitch. Plus the mouse movement has now gone screwey, so I hope to fix it. Only six modules to go now, three of which should just involve putting those code section headers in.
EDIT
Now only the weapons module to go. That one is going to be a fairly long job, and I've been at it all day, so I'm gonna leave that one till some other time
.
--- Blackout Edit Log ---
-- Code Reformat Starting Sept. 17, 05 --
-- Aim: To make all modules only use their own internal variables --
-- Edits by Paul Rohde Follow --
-- Sept. 17, 05 --
Console.dba
- Added Module comment header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- No misuse of private variables
Level.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Decided to allow Loading and Saving to file functions to be able to have "friend" status in regard to private variables, in other words, Loading and Saving functions will have direct acess to private variable data
- No misuse of private variables
Loopspeed.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function int "getFPS()" - returns the screen fps that is stored each loop in updateLoopSpeed()
- Added External Function int "FPS_getSetFrameRate()" which returns what the screen refresh rate is set to.
- Added External Function "FPS_setFrameRate(rate as integer) which sets and updates the screen refresh rate if the entered rate is >= 0
- Added External Function int "FPS_getGameSpeed()" which returns the set G_GameSpeed
- Added External Function "FPS_setGameSpeed(rate as integer) which changes the game speed if the given rate is >= 0
- Added External Function float "FPS_getGameRate()" which returns the set G_GameRate
- Added External Function float "FPS_getGameTime()" which returns the set G_GameTime
- Added External Function float "FPS_getLoopConstant()" which returns the G_LoopConstant
- Added External Function "FPS_setLoopConstant(rate as float)" which will set the G_LoopTime variable to the requested value if that value is above zero.
- Added External Function float "FPS_getLoopTime()" which returns the set G_LoopTime
- Added External Function float "FPS_getLoopSpeed()" which returns the set G_LoopSpeed
- Added External Function float "FPS_getLoopSpeed2()" which returns the set G_LoopSpeed2
- No misuse of private variables
camera.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function "CAM_setFOV(camera as integer, FOV as float)" that sets the internal field of view value
- Added External Function float "CAM_getFOV(camera as integer)" returns the internal set value of the FOV
- Added External Function int "CAM_getCameraNum(camera as integer)" returns the actual db camera number of that camera element
- Added External Function "CAM_setPos(camera as integer, pos as TYPE_XYZ)" that sets the internal position of the camera
- Added External Function "CAM_setPosX(camera as integer, xpos as float)" that sets the internal xpos of the camera
- Added External Function "CAM_setPosY(camera as integer, ypos as float)" that sets the internal ypos of the camera
- Added External Function "CAM_setPosZ(camera as integer, zpos as float)" that sets the internal zpos of the camera
- Added External Function "CAM_setPosXYZ(camera as integer, xpos as float, ypos as float, zpos as float)" that sets the internal position of the camera via three values
- Added External Function float "CAM_getPosX(camera as integer)" that returns the Xpos of the specified camera
- Added External Function float "CAM_getPosY(camera as integer)" that returns the Ypos of the specified camera
- Added External Function float "CAM_getPosZ(camera as integer)" that returns the Zpos of the specified camera
- Added External Function "CAM_setRot(camera as integer, rot as TYPE_XYZ)" that sets the internal rotation of the camera
- Added External Function "CAM_setRotX(camera as integer, xpos as float)" that sets the internal xrot of the camera
- Added External Function "CAM_setRotY(camera as integer, ypos as float)" that sets the internal yrot of the camera
- Added External Function "CAM_setRotZ(camera as integer, zpos as float)" that sets the internal zrot of the camera
- Added External Function "CAM_setRotXYZ(camera as integer, xrot as float, yrot as float, zrot as float)" that sets the internal rotation of the camera via three values
- Added External Function float "CAM_getRotX(camera as integer)" that returns the Xrot of the specified camera
- Added External Function float "CAM_getRotY(camera as integer)" that returns the Yrot of the specified camera
- Added External Function float "CAM_getRotZ(camera as integer)" that returns the Zrot of the specified camera
- No misuse of private variables
GeneralHandles.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- No Misuse of private variables
Character.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function int "CHR_getNumCharacters()" returns the G_NumCHaracters value
- Removed Global variable G_Temp, unused
- Added External Function int "CHR_getChrModelNum(chrNum)" returns the db model number of the character
- Added External Function int "CHR_getChrNewtonBody(chrNum as integer)" returns the Newton body number for the character
- Added External Function byte "CHR_getChrLife(chrNum as integer)" returns the characters life value
- Added External Function "CHR_setChrLife(chrNum as integer, life as byte)" sets the characters life value
-- Sept. 18, 05 --
Character.dba
- ReUpdated Module Header
- Added External Function float "CHR_getChrPosX(chrNum as integer)" returns the float X position of the character
- Added External Function float "CHR_getChrPosY(chrNum as integer)" returns the float Y position of the character
- Added External Function float "CHR_getChrPosZ(chrNum as integer)" returns the float Z position of the character
- Added External Function "CHR_setChrRotX(chrNum as integer, xrot as float)" sets the internal x angle of the character
- Added External Function "CHR_setChrRotY(chrNum as integer, yrot as float)" sets the internal y angle of the character
- Added External Function "CHR_setChrRotZ(chrNum as integer, zrot as float)" sets the internal z angle of the character
- Added External Function float "CHR_getChrRotX(chrNum as integer)" returns the float X rotation of the character
- Added External Function float "CHR_getChrRotY(chrNum as integer)" returns the float Y rotation of the character
- Added External Function float "CHR_getChrRotZ(chrNum as integer)" returns the float Z rotation of the character
- Added External Function float "CHR_getChrVelX(chrNum as integer)" returns the float X velocity of the character
- Added External Function float "CHR_getChrVelY(chrNum as integer)" returns the float Y velocity of the character
- Added External Function float "CHR_getChrVelZ(chrNum as integer)" returns the float Z velocity of the character
- Added External Function float "CHR_getChrCrossHairX(chrNum as integer)" returns the float X intersection of the characters crosshair
- Added External Function float "CHR_getChrCrossHairY(chrNum as integer)" returns the float Y intersection of the characters crosshair
- Added External Function float "CHR_getChrCrossHairZ(chrNum as integer)" returns the float Z intersection of the characters crosshair
- Added External Function "CHR_setChrWalkMode(chrNum as integer, mode as integer)" sets the internal walk mode of the character
- Added External Function int "CHR_getChrWalkMode(chrNum as integer)" gets the current walk mode state
- Added External Function int "CHR_getChrOnFloor(chrNum as integer)" returns the internal onFloor state
- Added External Function byte "CHR_getChrAction(chrNum as integer)" gets the current action state of the character
- Added External Function "CHR_setChrAction(chrNum as integer, action as byte)" sets the current action state of the character
-- Sept. 23, 05 --
Character.dba
- ReUpdated Module Header
- Added External Function float "CHR_getChrWeaponZoom(chrNum as integer)" returns the float weaponZoom value of the characters weapon
- Added External Function "CHR_setChrWeaponZoom(chrNum as integer, Zoom as float)" sets the weaponZoom value of the characters weapon
-- Sept. 24, 05 --
Character.dba
- ReUpdated Module Header
- Added External Function int "CHR_getChrWeaponFireTimer(chrNum as integer)" returns the fire timer for the specified character
- Added External Function "CHR_setChrWeaponFireTimer(chrNum as integer, timer as integer)" sets the fire timer for the character
- Added External Function int "CHR_getChrWeapon(chrNum as integer)" returns the current characters weapon
- Added External Function "CHR_setChrWeapon(chrNum as integer, weapon as integer)" sets the current characters weapon
- Added External Function bool "CHR_getChrActive(chrNum as integer)" returns if the character is active
- No misuse of private variables
Player.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function "FPP_setWeaponBobSpeed(speed as float)" sets the bob speed of the players gun
- Added External Function "FPP_setWeaponBobWidth(width as float)" sets the width of the players gun bobing
- Added External Function "FPP_setWeaponBobHeight(height as float)" sets the height of the players gun bobing
- Added External Function int "FPP_getPlayerCamera()" returns G_FPPlayer.camera
- Added External Function dword "FPP_getPlayerCharacter()" returns the internal character number
- Added External Function "FPP_setPlayerCharacter(number as dword)" set the internal character number
-- Edits by Joseph Thomson Follow --
-- Sept. 26, 05 --
Player.dba
- Added External Function dword "FPP_getModelNum()" returns the DBPro model number used to attach guns to
- Added External Function dword "FPP_getHandLimb()" returns the DBPro model limb number used to attach guns to
- Added External Function dword "FPP_getMuzzleFlashTimer()" returns the time that the flash appeared
- Added External Function "FPP_setMuzzleFlashTimer(time as dword)" sets the time that the flash appeared
- Added External Function float "FPP_getRecoilAngle()" returns the angle at which the gun has recoiled
- Added External Function "FPP_setRecoilAngle(ang as float)" sets the angle at which the gun has recoiled
- Added External Function dword "FPP_getWeapon()" returns the weapon that the first person player currently has equipped
- No misuse of private variables
ConfigParsing.dba
- Added Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function string "CFG_getParsedCommand()" returns the command section of a parsed string
- Added External Function dword "CFG_getNumParsedValues()" returns the number of values that were parsed in the string
- Added External Function string "CFG_getParsedValue(index as dword)" returns the specified value section of a parsed string, given that the index isn't out of range
- No misuse of private variables
-- Sept. 28, 05 --
General
- Changed all occurences of the UDT variables "position","velocity","rotation" and variations, to "pos","vel" and "rot", for consisitancy and less broken keyboards
Bullet.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function dword "BUL_getNumCollisions()" returns the number of bullets that have collided with something that loop
- Added External Function word "BUL_getColType(index as dword)" returns the sort of object the bullet collided with
- Added External Function dword "BUL_getColObj(index as dword)" returns the index of the object the bullet collided with
- Added External Function word "BUL_getColObjType(index as dword)" returns the type of the object (within the sub-catagory) that the bullet collided with (eg. stationary or non-stationary)
- Added External Function dword "BUL_getColMat(index as dword)" returns the material of the object collided with
- Added External Function float "BUL_getColPosX(index as dword)" returns the X world space component of the position of the collision
- Added External Function float "BUL_getColPosY(index as dword)" returns the Y world space component of the position of the collision
- Added External Function float "BUL_getColPosZ(index as dword)" returns the Z world space component of the position of the collision
- Added External Function float "BUL_getColVelX(index as dword)" returns the X component of the bullets velocity at the time of the collision
- Added External Function float "BUL_getColVelY(index as dword)" returns the Y component of the bullets velocity at the time of the collision
- Added External Function float "BUL_getColVelZ(index as dword)" returns the Z component of the bullets velocity at the time of the collision
- Added External Function float "BUL_getColNormX(index as dword)" returns the X component of the normal of the collision
- Added External Function float "BUL_getColNormY(index as dword)" returns the Y component of the normal of the collision
- Added External Function float "BUL_getColNormZ(index as dword)" returns the Z component of the normal of the collision
- Added External Function float "BUL_getColPower(index as dword)" returns the power of the bullet involved in the collision
- Added External Function bool "BUL_getColRicochet(index as dword)" returns whether the bullet in the collision ricocheted of not
- No misuse of private variables
Decal.dba
- Added Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function dword "DCL_getBulletHoleImage()" returns the index of the image of a bullet hole, used in decals
- No misuse of private variables
WorldEffects.dba
- Added Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
Particles.dba
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
Games.dba
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
GeneralCurveFunctions.dba
- Updated Module Header
- No misuse of private variables
GeneralString.dba
- Updated Module Header
- No misuse of private variables
HUD.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function bool "HUD_getSpeaking()" returns whether the network speak tool is open
- No misuse of private variables
Material.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function string "MAT_getDefaultMatName()" returns the name of the default material
- Added External Function dword "MAT_getDefaultMatGroupID()" returns the Newton group ID of the default material
- Added External Function dword "MAT_getMaxBulletEffects()" returns the maximum number of bullet effects that can be assigned to one material (this number is a constant, and can only be changed buy editing the code)
- Added External Function dword "MAT_getNumMaterials()" returns the current number of loaded materials (not including the default one)
- Added External Function string "MAT_getMatName(index as dword)" returns the name of a material
- Added External Function dword "MAT_getGroupID(index as dword)" returns the Newton group ID of a material
- Added External Function dword "MAT_getMatBulletEffect(index as dword,effect as byte)" returns the index of the specified particle effect assigned to a material
- Added External Function dword "MAT_getMatBulletEffectQuantity(index as dword,effect as byte)" returns the number of particles released from the specified particle effect assigned to a material
- No misuse of private variables
Music.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
Network.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function bool "NET_getNetStatus()" returns whether the player is acting as HOST or CLIENT
- Added External Function bool "NET_getConnected()" returns whether the player is connected to a network game or not
- Added External Function "NET_setDefaultIP(ip as string)" sets the default local IP (the IP of the player's computer)
- Added External Function "NET_setDefaultHostIP(ip as string)" sets the default host IP (the IP of the host's computer [can be the same as local IP])
- Added External Function "NET_setDefaultPlayers(players as byte)" sets the default maximum number of players that can join a game hosted by the player
- Added External Function "NET_setDefaultName(name as string)" sets the default name given to the player
- Added External Function "NET_setUpdateRate(rate as dword)" sets the number of milliseconds between each transmission of the player's state (position and velocity)
- Added External Function byte "NET_getMaxPlayers()" returns the maximum player index in the G_Player() array. There may not be the same amount of players in the array as the number of indices though
- Added External Function "NET_setPlayerChar(player as dword,char as dword)" sets the character assigned to represent the player in game
- Added External Function dword "NET_getPlayerChar(player as dword)" returns the character assigned to represent the player in game
- Added External Function "NET_setPlayerInGame(player as dword,inGame as boolean)" sets whether the player is in the current game or not (spectating or not)
- Added External Function bool "NET_getPlayerInGame(player as dword)" returns whether the player is in the current game or not (spectating or not)
- Added External Function string "NET_getPlayerName(player as dword)" returns the player's name
- Added External Function dword "NET_getNumTextMessages()" returns the number of text messages currently in the queue
- Added External Function string "NET_getTextMsg(msg as dword)" returns the string of the message specified
- Added External Function string "NET_getTextMsgPlayer(msg as dword)" returns the name of the player who sent the message specified
- Added External Function float "NET_getEventPosX(event as dword)" returns the X component of the position attribute of the event
- Added External Function float "NET_getEventPosY(event as dword)" returns the Y component of the position attribute of the event
- Added External Function float "NET_getEventPosZ(event as dword)" returns the Z component of the position attribute of the event
- Added External Function float "NET_getEventVelX(event as dword)" returns the X component of the velocity attribute of the event
- Added External Function float "NET_getEventVelY(event as dword)" returns the Y component of the velocity attribute of the event
- Added External Function float "NET_getEventVelZ(event as dword)" returns the Z component of the velocity attribute of the event
- Added External Function float "NET_getEventEntityA(event as dword)" returns the index of the A Entity of the event
- Added External Function dword "NET_getEventEntityA(event as dword)" returns the index of the A Entity of the event
- Added External Function dword "NET_getEventEntityAType(event as dword)" returns the type of the A Entity of the event
- Added External Function dword "NET_getEventEntityB(event as dword)" returns the index of the B Entity of the event
- Added External Function dword "NET_getEventEntityBType(event as dword)" returns the type of the B Entity of the event
- No misuse of private variables
Object.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function dword "OBJ_getNumObjects()" returns the number of objects
- Added External Function bool "OBJ_getObjActive(obj as dword)" returns whether an object is active (mass = 0) or not
- Added External Function dword "OBJ_getObjMatIndex(obj as dword)" returns the index of the material assigned to the object
- Added External Function dword "OBJ_getObjNewtonBody(obj as dword)" returns the index of the Newton body belonging to the object
- Added External Function bool "OBJ_getObjExplode(obj as dword)" returns whether an object explodes when its damage reaches zero or not
- Added External Function float "OBJ_getObjExplosionForce(obj as dword)" returns the force exerted on Newton objects by the object when it explodes
- Added External Function float "OBJ_getObjPosX(obj as dword)" returns the X component of the position of the object
- Added External Function float "OBJ_getObjPosY(obj as dword)" returns the Y component of the position of the object
- Added External Function float "OBJ_getObjPosZ(obj as dword)" returns the Z component of the position of the object
- Added External Function float "OBJ_getObjRotX(obj as dword)" returns the X component of the rotation of the object
- Added External Function float "OBJ_getObjRotY(obj as dword)" returns the Y component of the rotation of the object
- Added External Function float "OBJ_getObjRotZ(obj as dword)" returns the Z component of the rotation of the object
- No misuse of private variables
Spectator.dba
- Added Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function "SPEC_setActive(active as boolean)" sets the internal active variable to determine whether to control the spectator
- No misuse of private variables
Text.dba
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- No misuse of private variables
User.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Added External Function int "MouseMovementX()" returns the X mouse movement
- Added External Function int "MouseMovementY()" returns the Y mouse movement
- Added External Function int "MouseMovementZ()" returns the Z mouse movement
- No misuse of private variables