Skip to content

This plugin allows for players to create a little companion that would follow them around.

Notifications You must be signed in to change notification settings

Letaryat/CS2-Poor-Pets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CS2-Poor-Pets

This plugin allows for players to create a little companion that would follow them around.
poor-developer discord server ko-fi

[πŸ“Ί] Video presentation

CS2-Poor-Pets Showcase

[πŸ“Œ] Dependencies

[πŸ“Œ] Setup

  • Download latest release,
  • Drag files to /plugins/
  • Restart your server,
  • Config file should be created in configs/plugins/
  • Edit to your liking,

[πŸ›‘οΈ] Commands

Command Description
css_pets Opens up pets menu

[πŸ“] Pet configuration

Option Description
petName (string) Name of a pet that would show up in the menu
isVipOnly (bool) If pet should be only available for player with vip flag
petModel (string) Path in your addon to a Pet model
idleAnimation (string) Animation for a pet when idling
runAnimation (string) Animation for a pet when running
spawnAnimation (string) Animation for a pet when spawning
deathAnimation (string) Animation for a pet when player dies
isFlying (bool) If pet should fly
moveSpeed (float) Speed of a pet
rotationOffset (float) Rotation offset of pet model
followDistance (float) How long distance should be between pet and the player to start following player
stopDistance (float) Distance between Player and Pet to stop pet
offset (float[]) Offset from player: X,Y,Z

[πŸ“] Config example:

{
  "DatabaseConfig": {
    "DB_HOST": "localhost",
    "DB_Port": 3306,
    "DB_User": "root",
    "DB_Name": "db_",
    "DB_Password": "password"
  },
  "VipFlag": "@pets/vip",
  "UpdatePerTicks": 35,
  "TimeAfterDeathToDeletePet": 10,
  "Pets": [
    {
      "petName": "Beaver",
      "isVipOnly": false,
      "petModel": "models/pets/cskull/dota2/beaverknight/beaverknight.vmdl",
      "idleAnimation": "@courier_idle",
      "runAnimation": "@courier_run",
      "spawnAnimation": "@courier_spawn",
      "deathAnimation": "@courier_death",
      "isFlying": false,
      "moveSpeed": 200,
      "rotation_offset": -90,
      "follow_distance": 100,
      "stop_distance": 70,
      "offset": [
        -30,
        -20,
        0
      ]
    },
    {
      "petName": "Snowl",
      "isVipOnly": false,
      "petModel": "models/pets/cskull/dota2/snowl/snowl_flying.vmdl",
      "idleAnimation": "@courier_idle",
      "runAnimation": "@courier_run",
      "spawnAnimation": "@courier_spawn",
      "deathAnimation": "@courier_death",
      "isFlying": true,
      "moveSpeed": 200,
      "rotation_offset": -90,
      "follow_distance": 100,
      "stop_distance": 70,
      "offset": [
        -30,
        -20,
        50
      ]
    },
    {
      "petName": "Llama",
      "isVipOnly": true,
      "petModel": "models/pets/cskull/dota2/livery_llama_courier/livery_llama_courier.vmdl",
      "idleAnimation": "@courier_idle",
      "runAnimation": "@courier_run",
      "spawnAnimation": "@courier_spawn",
      "deathAnimation": "@courier_death",
      "isFlying": false,
      "moveSpeed": 200,
      "rotation_offset": -90,
      "follow_distance": 100,
      "stop_distance": 70,
      "offset": [
        -30,
        -20,
        0
      ]
    }
  ],
  "ConfigVersion": 1
}

[❀️] Special thanks to:

[🚨] Plugin might be poorly written and have some issues. I have no idea what I am doing, but when tested it worked fine.

About

This plugin allows for players to create a little companion that would follow them around.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages