content/hifi-content/huffman/ctf
2022-02-14 01:14:32 +01:00
..
models More files 2022-02-13 23:27:08 +01:00
sounds LFS updates 2022-02-14 01:14:32 +01:00
ballClientEntity.js More files 2022-02-13 23:27:08 +01:00
firework.js More files 2022-02-13 23:27:08 +01:00
goalClientEntity.js More files 2022-02-13 23:27:08 +01:00
gunSpawnerClientEntity.js More files 2022-02-13 23:27:08 +01:00
origina_portal_gun.js More files 2022-02-13 23:27:08 +01:00
Portal-Red-Blue.svo.json More files 2022-02-13 23:27:08 +01:00
portalBulletClientEntity.js More files 2022-02-13 23:27:08 +01:00
portalgun.json More files 2022-02-13 23:27:08 +01:00
portalGunClientEntity.js More files 2022-02-13 23:27:08 +01:00
README.md More files 2022-02-13 23:27:08 +01:00
spawnPortalGun.js More files 2022-02-13 23:27:08 +01:00
utils.js More files 2022-02-13 23:27:08 +01:00

ballClientEntity.js

  • Keeps track of whether it is being held locally.
  • Has a message interface to release the ball. This message is sent when the portal gun bullet/orb hits the user.
  • Releases the ball when the goal is touched, and sends a message to the goal

goalClientEntity.js

  • Shoots fireworks when the ball is scored
  • Manages a cooldown so the goal can only be triggered every 2 seconds (on the client, so technically if 2 clients scored in a shorted period of time it would still trigger twice).

portalGunClientEntity.js

Portal gun client entity script

portalBulletClientEntity.js

Portal bullet client entity script. Teleports a user to the starting area when it hits a user

gunSpawnerClientEntity.js

Spawns guns when it is clicked/grabbed/fargrabbed