GTAMP.com

Grand Theft Auto Multiplayer
It is currently Wed Dec 12, 2018 5:10 pm

All times are UTC




Post new topic Reply to topic  [ 66 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
PostPosted: Sat Dec 08, 2018 8:23 am 
Offline
Serial Killer

Joined: Wed Dec 09, 2015 2:18 pm
Posts: 208
Pseudo functions version 3:

Player IS:
    If on vision an object (object type: emitter particle, light, sound and music, sprite, pickup, vehicle, player, NPC)
    If in area (in coordinates)
    If defined
    If connected
    If admin?
    If in game
    If alive
    If in a vehicle
    If in any vehicle
    If driver
    If passenger
    If standing
    If lying on the ground
    If is control
    If burning
    If you run into an object
    If wanted
    If wasted
    If attacking an object
    If on vision for other object
    If the object does not see
    If you received damage
    If in water
    If on ground
    If collided an object
    If leader of group?
    If group defined
    If cam path defined?
    If range of point
    If range of object (This object: player, vehicle, object, etc)
    If moved
    If key press (Virtual key: 0-255)
    If key down
    If key up
    If press game key (example "fire", "sprint", "jump", etc)

Player SET:
    Set cam
    Set cam angle
    Set cam zoom
    Reset cam
    Move cam at point on time (speed, time, point)
    Make cam path
    Delete cam path
    Add cam in path on time (speed, time, point)
    Remove cam from path
    Move cam path
    Stop cam
    Set cam following object
    Set cam un follow
    Set admin?
    Set walk speed
    Set run speed
    Set wanted level
    Set skin
    Set weapon and ammo
    Set slot current weapon
    Set health
    Set armor
    Make group (set leader and max members)
    Delete group
    Set max members of group
    Add player in group
    Set leader of group
    Remove from group
    Reset weapons
    Set nickname?
    Kick a player from the server
    Ban player on server
    Unban player on server (by IP and nickname in blacklist)
    Run animation (play)
    Stop animation
    Block control
    Enter vehicle on seat
    Exit from vehicle
    Go to point (if the character goes to the car)
    Set position (teleport)
    Kill
    Set damage object of weapon type
    Stop damage
    Respawn (returns to creation point)
    Set respawn
    Set follow object on speed (type of objects: emitter particle, light, sound and music, pickup, sprite, vehicle, player, NPC)
    Stop follow an object (specify the type and speed of the pursuit)
    Set destroy an object from weapon type.
    Stop (if it slows down in a car)
    Reset all actions and animations (the character will just stand still)
    Stop destroying an object
    Reset all objective tasks
    Set position
    Reset respawn point (place of appearance after death)
    Put player in vehicle in seat
    Remove player from vehicle
    Send message
    Clear chat (clear chat for player)
    Set kills
    Set deads
    Set money
    Set hud
    Attach object
    Dettach object
    Attack object from weapon type (single or loop)
    Attack at point from weapon type (weapon type it arrays weapons of object)
    Stop attack

Player GET:
    Get cam position
    Get cam zoom
    Get cam path?
    Get nickname
    Get walk speed
    Get run speed
    Get wanted Level
    Get health
    Get armor
    Get current weapon
    Get weapon from slot
    Get ammo from slot
    Get ammo from current weapon
    Get current weapon slot
    Get vehicle
    Get a passenger seat
    Get max members of group
    Get members of group
    Get leader of group (leader this player)
    Blow up
    Set fire
    Put out
    Get type of the last damage (the type of weapon from which the player attacked and damage)
    Get angle
    Get coordinates
    Get current animation
    Get vision object
    Get attacking object
    Get current skin
    Get following object
    Get damaging object
    Get collided object
    Get distance of point
    Get distance of object

Vehicle IS:
    If defined
    If wrecked
    If water
    If ground
    If type (plane, heli, car, truck, bike, etc)
    If air
    If truck
    If emergy
    If bike
    If passenger transport
    If trailer attached
    If moved
    If has weapon (tank, gun jeep, etc)
    If protect proof (bullet, fire, explode, collided, etc)
    If extra?
    If tire wrecked?
    If range of point
    If range of object (This object: player, vehicle, object, etc)

Vehicle SET:
    Set position (teleport)
    Set angle
    Set health
    Set color
    Set protect proof
    Set max speed
    Set speed
    Set damage
    Set engine state
    Set light state
    Set door lock
    Set alarm state
    Set alarm (add/del alarm on car)
    Set siren state
    Set siren (add/del siren on car)
    Set weapon and ammo
    Go at point on speed
    Set follow object on speed (object: vehicle, player, NPC, etc)
    Set un follow
    Set damage object of weapon type
    Stop kill
    Create
    Delete
    Explode
    Burn
    Exegunsh
    Kill all passengers
    Kill passenger on seat (this driver - 0, passenger - 1, etc)
    Put object on trailer
    Put vehicle on trailer
    Remove object from trailer
    Remove vehicle from trailer
    Attach trailer on truck
    Attach on trailer
    Open component on time
    Close component on time
    Detach trailer
    Remove object from trailer
    Remove vehicle from trailer
    Set max passengers (set maximal limit)
    Set extra? (This tuning part: decal, roof mod, skins and other)
    Set tire? (HP for wheels)

Vehicle GET:
    Get position
    Get color
    Get model
    Get type (plane, boat, heli, car, bike, etc)
    Get protect proof
    Get health
    Get max passengers
    Get passengers
    Get max speed
    Get speed
    Get engine state
    Get light state
    Get door lock
    Get alarm state
    Get alarm
    Get siren state
    Get siren
    Get damage (wrecked component part)
    Get current weapon
    Get current ammo
    Get weapon from slot
    Get ammo from slot
    Get following object
    Get damaging object
    Get collided object
    Get extra?
    Get tire?
    Get distance of point
    Get distance of object

Server IS:
    If network (or single game)
    If runing
    If restarting
    If opened (if set not private mode)
    If states saved?

Server SET:
    Save log
    Set sync
    Set time
    Set time loop (frezee time)
    Set weather
    Set weather loop
    Send server message
    Clear server message
    Start?
    Stop
    Restart
    Load map?
    Save player states (states type: player, vehicle, pickup, object, emmiter particle, sound, etc)?
    Load player states?
    Delete player states?
    Send message
    Clear chat (clear chat for all players)
    Exploded at point
    Burn at point
    Exegunsh at point of range

Server GET:
    Get sync
    Get time
    Get weather
    Get usage memory
    Get runing time
    Get max players (maximal limit)
    Get players
    Get admins?

Draw IS:
    If texture defined
    If text defined
    If arrow defined

Draw SET:
    Create player arrow (icon ID, style, color, x, y, z)
    Delete arrow
    Set arrow style
    Set arrow target (This coord: x, y, z)
    Set arrow follow object
    Set arrow un follow
    Set arrow visible
    Create player text
    Delete text
    Set text string
    Set text visible (0 - hide, 1 - show)
    Set text style (font, size)
    Set text position (x, y, w, h, r)
    Create player texture
    Delete texture
    Set texture param
    Set texture position
    Set texture visible
    Move texture at x, y on time?
    Stop move texture?
    -- This for loop
    Draw player texture (texture name, w, h, x, y, r)
    Draw player text (text string, font, size, w, h, x, y, r)
    Draw player arrow (icon ID, style, color, x, y, z)
    -- eof

Draw GET:
    Get arrow player ID
    Get arrow style
    Get arrow target
    Get arrow follow object
    Get arrow visible
    Get text player ID
    Get text string
    Get text style
    Get text position
    Get text visible
    Get texture player ID
    Get texture param
    Get texture position
    Get texture visible

Light IS:
    If defined
    If swith
    If night mode

Light SET:
    Create
    Delete
    Set param (range, intensity, style, time on, time off, color, night mode, etc) This style: spot, ray, etc
    Set mask? (set alpha texture)
    Set position
    Set swith (enable/disable)
    Attach object on offset (This object: player, vehicle, object, etc)
    Detach object

Light GET:
    Get param
    Get mask?
    Get position
    Get swith
    Get attached object ID

Sound IS:
    If defined
    If swith
    If loop

Sound SET:
    Create
    Delete
    Set param (sound name, range, volume, loop mode, x, y, z)
    Set position
    Set swith (enable/disable)
    Set play
    Set stop
    Set volume
    Set player (play only player)
    Attach object on offset (This object: player, vehicle, object, etc)
    Detach object

Sound GET:
    Get param
    Get position
    Get swith
    Get attached object ID
    Get player ID

Also need for: NPC, Object, Emmiter, etc.

P.S.: Don't fear many functions it just reflections and examples.

_________________
Map F-Industry-Live
MISI Library


Last edited by Logofero on Sat Dec 08, 2018 12:31 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Dec 08, 2018 8:35 am 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 1345
Location: GTAMP.com
So all we really want is a way to set and get all objects/peds/vehicles and all of their attributes :P


Top
 Profile  
 
PostPosted: Sat Dec 08, 2018 10:57 am 
Offline
Serial Killer

Joined: Wed Dec 09, 2015 2:18 pm
Posts: 208
Sektor wrote:
So all we really want is a way to set and get all objects/peds/vehicles and all of their attributes :P

Ye, let's named it "Attribute programming" - we manage only the logical comparisons "IS", the entry "SET" and the reading of the attributes "GET".

This is useful when used in object programming. Attribute programming is convenient because it doesn’t trouble the script-writer to know in advance that there is an object and a set of attributes, properties that are similar to a real object, and it’s easy to figure out which attributes in an object to serve even a beginner.

_________________
Map F-Industry-Live
MISI Library


Top
 Profile  
 
PostPosted: Sun Dec 09, 2018 7:03 am 
Offline
Serial Killer

Joined: Wed Dec 09, 2015 2:18 pm
Posts: 208
Pseudo functions version 4:

Player IS:
    If on vision an object (object type: emitter particle, light, sound and music, sprite, pickup, vehicle, player, NPC)
    If in area (in coordinates)
    If defined
    If connected
    If admin?
    If in game
    If alive
    If in a vehicle
    If in any vehicle
    If driver
    If passenger
    If standing
    If lying on the ground
    If is control
    If burning
    If following an object
    If wanted
    If wasted
    If attacking an object
    If on vision for other object
    If object does not see
    If received damage
    If in water
    If on ground
    If collided an object
    If leader of group?
    If group defined
    If cam path defined?
    If range of point
    If range of object (This object: player, vehicle, object, etc)
    If moved
    If key press (Virtual key: 0-255)
    If key down
    If key up
    If press game key (example "fire", "sprint", "jump", etc)
    If dead reason ID?
    If weapon reloading
    If weapon shooting

Player SET:
    Set cam
    Set cam angle
    Set cam zoom
    Reset cam
    Move cam at point on time (speed, time, point)
    Make cam path
    Delete cam path
    Add cam in path on time (speed, time, point)
    Remove cam from path
    Move cam path
    Stop cam
    Set cam following object
    Set cam un follow
    Set admin?
    Set walk speed
    Set run speed
    Set wanted level
    Set skin
    Set weapon and ammo
    Set slot current weapon
    Set health
    Set armor
    Make group (set leader and max members)
    Delete group
    Set max members of group
    Add player in group
    Set leader of group
    Remove from group
    Reset weapons
    Set nickname?
    Kick a player from the server
    Ban player on server
    Unban player on server (by IP and nickname in blacklist)
    Run animation (play)
    Stop animation
    Block control
    Enter vehicle on seat
    Exit from vehicle
    Go to point (if the character goes to the car)
    Set position (teleport)
    Kill
    Set damage object of weapon type
    Stop damage
    Respawn (returns to creation point)
    Set respawn
    Set follow object on speed (type of objects: emitter particle, light, sound and music, pickup, sprite, vehicle, player, NPC)
    Stop follow an object (specify the type and speed of the pursuit)
    Set destroy an object from weapon type.
    Stop (if it slows down in a car)
    Reset all actions and animations (the character will just stand still)
    Stop destroying an object
    Reset all objective tasks
    Reset respawn point (place of appearance after death)
    Put player in vehicle in seat
    Remove player from vehicle
    Send message
    Clear chat (clear chat for player)
    Set kills
    Set deads
    Set money
    Set hud
    Attach object
    Dettach object
    Attack object from weapon type (single or loop)
    Attack at point from weapon type (weapon type it arrays weapons of object)
    Stop attack
    Set collision? (This type: none, triger or solid body)
    Set current clip?
    Set clip from slot (10 / 30 here clip 30 and ammo 40)?

Player GET:
    Get cam position
    Get cam zoom
    Get cam path?
    Get nickname
    Get walk speed
    Get run speed
    Get wanted Level
    Get health
    Get armor
    Get current weapon
    Get weapon from slot
    Get ammo from slot
    Get ammo from current weapon
    Get current weapon slot
    Get vehicle
    Get a passenger seat
    Get max members of group
    Get members of group
    Get leader of group (leader this player)
    Blow up
    Set fire
    Put out
    Get type of the last damage (the type of weapon from which the player attacked and damage)
    Get angle
    Get coordinates
    Get current animation
    Get vision object
    Get attacking object
    Get current skin
    Get following object
    Get damaging object
    Get collided object
    Get distance of point
    Get distance of object
    Get pool players (This get array of player IDs)
    Get collision?
    Get current speed
    Get pool player from point of range
    Get current clip
    Get clip from slot (10 / 30 here clip 30 and ammo 40)

NPC IS:
    If on vision an object
    If in area (in coordinates)
    If defined
    If alive
    If in a vehicle
    If in any vehicle
    If driver
    If passenger
    If standing
    If lying on the ground
    If is control
    If burning
    If following an object
    If wanted
    If wasted
    If attacking an object
    If on vision for other object
    If object does not see
    If received damage
    If in water
    If on ground
    If collided an object
    If leader of group?
    If group defined
    If range of point
    If range of object (This object: player, vehicle, object, etc)
    If moved
    If dead reason ID?
    If weapon realoding
    If weapon shooting

NPC SET:
    Set walk speed
    Set run speed
    Set wanted level
    Set skin
    Set weapon and ammo
    Set slot current weapon
    Set health
    Set armor
    Make group (set leader and max members)
    Delete group
    Set max members of group
    Add NPC in group
    Set leader of group
    Remove from group
    Reset weapons
    Set name
    Run animation (play)
    Stop animation
    Block control
    Un block control
    Enter vehicle on seat
    Exit from vehicle
    Go to point (if the character goes to the car)
    Set position (teleport)
    Kill
    Set damage object of weapon type
    Stop damage
    Respawn (returns to creation point)
    Set respawn
    Set follow object on speed (type of objects: emitter particle, light, sound and music, pickup, sprite, vehicle, player, NPC)
    Stop follow an object (specify the type and speed of the pursuit)
    Set destroy an object from weapon type
    Stop (if it slows down in a car)
    Reset all actions and animations (the character will just stand still)
    Stop destroying an object
    Reset all objective tasks
    Reset respawn point (place of appearance after death)
    Put player in vehicle in seat
    Remove player from vehicle
    Send message
    Clear chat (clear chat for player)
    Set kills
    Set deads
    Set money
    Attach object
    Dettach object
    Attack object from weapon type (single or loop)
    Attack at point from weapon type (weapon type it arrays weapons of object)
    Stop attack
    Set protect proof
    Set collision? (This type: none, triger or solid body)
    Set current clip?
    Set clip from slot (10 / 30 here clip 30 and ammo 40)?

NPC GET:
    Get name
    Get walk speed
    Get run speed
    Get wanted Level
    Get health
    Get armor
    Get current weapon
    Get weapon from slot
    Get ammo from slot
    Get ammo from current weapon
    Get current weapon slot
    Get vehicle
    Get a passenger seat
    Get max members of group
    Get members of group
    Get leader of group (leader this player)
    Blow up
    Set fire
    Put out
    Get type of the last damage (the type of weapon from which the player attacked and damage)
    Get angle
    Get coordinates
    Get current animation
    Get vision object
    Get attacking object
    Get current skin
    Get following object
    Get damaging object
    Get collided object
    Get distance of point
    Get distance of object
    Get pool NPC (This get array of player IDs)
    Get protect proof
    Get collision?
    Get current speed
    Get pool NPC from point of range
    Get current clip
    Get clip from slot (10 / 30 here clip 30 and ammo 40)

Vehicle IS:
    If defined
    If wrecked
    If in water
    If ground
    If type (plane, heli, train, car, truck, bike, etc)
    If air
    If trailer attached
    If moved
    If has weapon (tank, gun jeep, etc)
    If protect proof (bullet, fire, explode, collided, etc)
    If extra?
    If tire wrecked?
    If range of point
    If range of object (This object: player, vehicle, object, etc)
    If dead reason ID?
    If weapon reloading
    If weapon shooting

Vehicle SET:
    Set position (teleport)
    Set angle
    Set health
    Set color
    Set protect proof
    Set max speed
    Set speed
    Set damage
    Set engine state
    Set light state
    Set door lock
    Set alarm state
    Set alarm (add/del alarm on car)
    Set siren state
    Set siren (add/del siren on car)
    Set weapon and ammo
    Go at point on speed
    Set follow object on speed (object: vehicle, player, NPC, etc)
    Set un follow
    Set damage object of weapon type
    Stop kill
    Create
    Delete
    Explode
    Burn
    Exegunsh
    Kill all passengers
    Kill passenger on seat (this driver - 0, passenger - 1, etc)
    Put object on trailer
    Put vehicle on trailer
    Remove object from trailer
    Remove vehicle from trailer
    Attach trailer on truck
    Attach on trailer
    Open component on time
    Close component on time
    Detach trailer
    Remove object from trailer
    Remove vehicle from trailer
    Set max passengers (set maximal limit)
    Set extra? (This tuning part: decal, roof mod, skins and other)
    Set tire? (HP for wheels)
    Set collision (This type: none, triger or solid body) - for racing
    Set current weapon slot (This car gun)
    Set current clip?
    Set clip from slot?

Vehicle GET:
    Get position
    Get color
    Get model
    Get type (plane, boat, heli, car, bike, etc)
    Get protect proof
    Get health
    Get max passengers
    Get passengers
    Get max speed
    Get speed
    Get engine state
    Get light state
    Get door lock
    Get alarm state
    Get alarm
    Get siren state
    Get siren
    Get damage (wrecked component part)
    Get current weapon
    Get current ammo
    Get current weapon slot
    Get weapon from slot
    Get ammo from slot
    Get following object
    Get damaging object
    Get collided object
    Get extra?
    Get tire?
    Get distance of point
    Get distance of object
    Get pool vehicles (This get array of vehicles IDs)
    Get collision
    Get current speed
    Get pool vehicles from point of range
    Get current clip
    Get clip from slot (10 / 30 here clip 30 and ammo 40)
    Get name (name string)

Server IS:
    If network (or single game)
    If runing
    If restarting
    If opened (if set not private mode)
    If states saved?

Server SET:
    Save log
    Set sync
    Set time
    Set time loop (frezee time)
    Set weather
    Set weather loop
    Send server message
    Clear server message
    Start?
    Stop
    Restart
    Load map?
    Save player states (states type: player, vehicle, pickup, object, emmiter particle, sound, etc)?
    Load player states?
    Delete player states?
    Send message
    Clear chat (clear chat for all players)
    Exploded at point
    Burn at point
    Exegunsh at point of range

Server GET:
    Get sync
    Get time
    Get weather
    Get usage memory
    Get runing time
    Get max players
    Get players (This online players on server: 0-100)
    Get admins?

Draw IS:
    If texture defined
    If text defined
    If arrow defined
    If layer index

Draw SET:
    Create player arrow (icon ID, style, color, x, y, z, layer)
    Delete arrow
    Set arrow style
    Set arrow target (This coord: x, y, z)
    Set arrow follow object
    Set arrow un follow
    Set arrow visible
    Create player text
    Delete text
    Set text string
    Set text visible (0 - hide, 1 - show)
    Set text style (font, size)
    Set text position (x, y, w, h, r)
    Create player texture
    Delete texture
    Set texture param
    Set texture position
    Set texture visible
    Move texture at x, y on time?
    Stop move texture?
    -- This for loop
    Draw player texture (texture name, w, h, x, y, r, layer)
    Draw player text (text string, font, size, w, h, x, y, r, layer)
    Draw player arrow (icon ID, style, color, x, y, z, layer)
    -- eof
    Set texture layer index (This index: 0 - back, 1 - top, 2, etc)
    Set text layer index (This index: 0 - back, 1 - top, 2, etc)
    Set arrow layer index (This index: 0 - back, 1 - top, 2, etc)

Draw GET:
    Get arrow player ID
    Get arrow style
    Get arrow target
    Get arrow follow object
    Get arrow visible
    Get arrow layer index
    Get text player ID
    Get text string
    Get text style
    Get text position
    Get text visible
    Get text layer index
    Get texture player ID
    Get texture param
    Get texture position
    Get texture visible
    Get texture layer index

Light IS:
    If defined
    If swith
    If night mode

Light SET:
    Create
    Delete
    Set param (range, intensity, style, time on, time off, color, night mode, etc) This style: spot, ray, etc
    Set mask? (set alpha texture)
    Set position
    Set swith (enable/disable)
    Attach object on offset (This object: player, vehicle, object, etc)
    Detach object

Light GET:
    Get param
    Get mask?
    Get position
    Get swith
    Get attached object ID
    Get pool lights from point of range

Sound IS:
    If defined
    If swith
    If loop

Sound SET:
    Create
    Delete
    Set param (sound name, range, volume, loop mode, x, y, z)
    Set position
    Set swith (enable/disable)
    Set play
    Set stop
    Set volume
    Set player (play only player)
    Attach object on offset (This object: player, vehicle, object, etc)
    Detach object

Sound GET:
    Get param
    Get position
    Get swith
    Get attached object ID
    Get player ID
    Get pool sounds from point of range

Object IS:
    If on vision an object (object type: emitter particle, light, sound and music, sprite, pickup, vehicle, player, NPC)
    If in area (in coordinates)
    If defined
    If alive
    If model
    If burning
    If received damage
    If in water
    If on ground
    If collided an object
    If collision on
    If visible?
    If physic
    If type (This: static, dynamic, weapon pickup, car pickup, pickup, etc)
    If range of point
    If range of object (This object: player, vehicle, object, etc)
    If moved
    If dead reason ID?

Object SET:
    Create
    Delete
    Explode
    Burn
    Exegunsh
    Kill
    Set health
    Set protect proof
    Set position
    Set angle
    Set size?
    Set mass?
    Set center mass?
    Set physic
    Set type
    Set model?
    Set sprite name?
    Set time respawn? (if it pickup)
    Set collision (This type: none, triger or solid body)
    Set visible?
    Throw at point (object, power, x, y, z)
    Move at point on speed
    Rotation on angle on speed?
    Stop move
    Play animation
    Stop animation
    Set animation param (play single or loop, etc)
    Attach object on offset (This object: player, vehicle, object, etc)
    Dettach object

Object GET:
    Get health
    Get protect proof
    Get position
    Get size? (w, h, z)
    Get mass?
    Get center mass?
    Get angle
    Get sprite name?
    Get model
    Get type
    Get animation
    Get attached object ID
    Get pool objects
    Get visible?
    Get physic
    Get time respawn?
    Get collision
    Get pool objects from point of range

Emitter IS:
    If defined
    If visible?
    If physic?
    If loop
    If moved?
    If ended
    If collided an object?

Emitter SET:
    Create
    Delete
    Set position
    Set angle
    Set param (particle name, loop mode, x, y, z)
    Set visible?
    Attach object on offset (This object: player, vehicle, object, etc)
    Dettach object
    Set physic?
    Set collision?

Emitter GET:
    Get position
    Get angle
    Get param
    Get visible
    Get attached object
    Get physic?
    Get collision?
    Get pool emitters from point of range

Map IS:
    If race path defined
    If road point defined
    If train point defined
    If bus station defined
    If player start race path
    If player finish race path
    If player on bus station of range
    If player on road point of range
    If player on train point of range

Map SET:
    Make race path
    Delete race path
    Add race point in path (This point: x, y, z)
    Remove race point from path
    Add race finish point on path
    Add race start point on path
    Play race path
    Stop race path
    Add player in race path on spawn ID
    Remove player from race
    Set road point position (x, y, z)
    Set road point type (up, down, right, left, etc)
    Set train point position (x, y, z)
    Set train point type
    Set bus stantion position (x, y, z)
    Set bus stantion name

Map GET:
    Get pool road points (Get array R paths IDs)
    Get pool train points (Get array T paths IDs)
    Get pool bus stations (Get array bus stations IDs)
    Get road point position (x, y, z)
    Get road point number
    Get road point type (right or left)
    Get train point position (x, y, z)
    Get train point number
    Get train point type (roads types, stantion, etc)
    Get bus stantion position (x, y, z)
    Get bus stantion number
    Get bus stantion name

Last update: Player, NPC, Vehicle

_________________
Map F-Industry-Live
MISI Library


Last edited by Logofero on Mon Dec 10, 2018 5:52 pm, edited 2 times in total.

Top
 Profile  
 
PostPosted: Mon Dec 10, 2018 8:34 am 
Offline
Car Jacker
User avatar

Joined: Sun Feb 21, 2010 10:03 pm
Posts: 45
Ok this will take a while to implement, but is a good guide for me, i can see what i missed, everything will be object & attribute based as much as possible, this is already my approach.

However the script should be assumed to be multithreaded, so don't expect that a GET after SET will actually return correct data - correct data will be only on next script "tick", this approach gives me flexibility to not have game lag due to script (something that happens regularly in architecture of projects like sa-mp).

I've got a mini-project right now to get more characters in the game - i know scripting will work and i can extend what i have, but the fact that there is only 1 character model in game really makes a problem when other parts of the game are more refined. So, i'm working on getting animated 3d models working either in the game or animated & rendered to sprites in external tool, that will enable me to have more than just 1 character type. I will try to have a simple pipeline, but it needs to be done, as i need more animations - there's no strafing (althru i'm not totally sure yet if this is a good thing to add). Gta2 could do everything with 3 models, but i hope to have more.


Top
 Profile  
 
PostPosted: Mon Dec 10, 2018 5:32 pm 
Offline
Serial Killer

Joined: Wed Dec 09, 2015 2:18 pm
Posts: 208
JernejL wrote:
Ok this will take a while to implement, but is a good guide for me, i can see what i missed, everything will be object & attribute based as much as possible, this is already my approach.

However the script should be assumed to be multithreaded, so don't expect that a GET after SET will actually return correct data - correct data will be only on next script "tick", this approach gives me flexibility to not have game lag due to script (something that happens regularly in architecture of projects like sa-mp).

I've got a mini-project right now to get more characters in the game - i know scripting will work and i can extend what i have, but the fact that there is only 1 character model in game really makes a problem when other parts of the game are more refined. So, i'm working on getting animated 3d models working either in the game or animated & rendered to sprites in external tool, that will enable me to have more than just 1 character type. I will try to have a simple pipeline, but it needs to be done, as i need more animations - there's no strafing (althru i'm not totally sure yet if this is a good thing to add). Gta2 could do everything with 3 models, but i hope to have more.

Good. We understood each other. I agree to any improvisation in coding. It would be nice to be able to check the cycle tick to avoid the old value.

If more attributes come to mind, I will add version 4.

_________________
Map F-Industry-Live
MISI Library


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 66 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group