Skip to content

Commit

Permalink
Created Multiplayer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
in0finite committed Oct 15, 2018
1 parent 27fe2ae commit d7ef772
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions Docs/Multiplayer.md
@@ -0,0 +1,65 @@


# What needs to be done before starting work on multiplayer

- add startup scene - where you can choose if you want to start server, or join game

- windows must be visible in startup scene

- create windows for: start new game ; join game ;

- multiple focus transforms for Cell



# Scripts that need to be synced across network


## Ped

variables:

- id
- transform
- is walking / running / sprinting
- heading
- is aiming
- is firing
- current weapon
- current vehicle - not needed - synced in Vehicle
- aim direction

events:

- fire
- enter/exit vehicle
- jump



## Vehicle

variables:

- id
- transform
- car colors
- linear velocity
- angular velocity
- steering angle
- acceleration
- brake
- peds which occupy seats



## Weapon

variables:

- id
- ammo in clip
- ammo outside of clip
- ped owner


0 comments on commit d7ef772

Please sign in to comment.