Digital resource
Loading resource page
Online7

Currently, when picking up a gift, only the command specified in the config is executed. A transition to a modular system is planned for the future.
{
"default_model": "models/gift/giftmodelwhite.vmdl", //Default gift model if you don't want to specify it for each gift
"default_spawnsound": "gift.Drop", //Default drop sound
"default_pickupsound": "gift.PickUp", //Default pickup sound
"default_pickupeffect": "particles/water_impact/water_splash_player_small.vpcf", //Default effect on pickup
"default_lifetime": 10.5, //Default gift lifetime after which it will disappear
"soundevent_file": "soundevents/gift/soundevents_gift.vsndevts", //Sound file to load
"dropfromenemies": true, //Whether gifts drop from enemies on kill
"dropfromteammates": true, //Whether gifts drop from teammates on kill
"Gifts": {
"Gift_1": {
"name": "Custom Command",
"model": "models/gift/giftmodelwhite.vmdl",
"spawnsound": "",
"pickupsound": "",
"chance": 0.5, //Gift spawn chance 0.01 - 1.0 (1% - 100%)
"lifetime": 10,
"pickupeffect": "",
"printtoall": "{red}{NAME} {green}picked up a gift! He will recieve a reward!", //What will be sent to chat to other players on gift pickup
"printtoplayer": "{green}You have picked up a {red}gift{green}! You recieved a reward!",//What will be sent to chat to the player who picked up the gift
"command": "css_your_cusom_command (supports {STEAM} - steamid64, {NAME} - name, {UID} - userid)",// Command to execute
"custom": "Custom info for modules [future updates]"//For future updates
},
"Gift_2": {
"name": "VIP 1 day",
"model": "models/gift/giftmodelwhite.vmdl",
"spawnsound": "",
"pickupsound": "",
"chance": 0.5,
"lifetime": 10,
"pickupeffect": "",
"printtoall": "{red}{NAME} {green}picked up a gift! He will recieve a reward!",
"printtoplayer": "{green}You have picked up a {red}gift{green}! You recieved a reward!",
"command": "css_vip_adduser {STEAMID} vip 1440",
"custom": "Custom info for modules [future updates]"
}
},
"ConfigVersion": 1
}
The gift model was taken from here and ported to CS2.
The plugin is provided without binding and without source code.
Online7