Digital resource
Loading resource page
Online7
Allows players to throw knives. Flexible configuration, API available for your custom modules.
Modules:
API information
List of buttons for the "KnifeThrowButton" parameter
General settings are generated automatically and are located at addons\counterstrikesharp\configs\plugins[Core] ThrowingKnives.
{
"KnifeAmount": 3, // Number of knives
"KnifeLimit": -1, // Knife limit -1 = no limit
"KnifeSteal": false, // Ability to steal knives on kill
"KnifeVelocity": 1200, // Knife flight speed
"KnifeDamage": 50, // Knife body damage
"KnifeModelScale": 1, // Knife model size
"KnifeGravity": 1, // Knife gravity
"KnifeElasticity": 0.2, // Knife bounce force
"KnifeLifetime": 3, // Time after which the knife will disappear automatically
"KnifeSpin": true, // Knife spin when thrown (the knife doesn't always spin perfectly from the player, so I added this parameter)
"KnifeHeadshotDamage": 100 // Knife headshot damage
}
There is a module for VIP (CSSharp) that allows you to set custom settings for each VIP group. If a parameter is missing, the default value will be used. Example VIP config:
"ThrowingKnives":
{
"Amount": 5,
"Limit": -1,
"Steal": false,
"Velocity": 1200,
"Damage": 60,
"ModelScale": 1,
"Gravity": 1,
"Elasticity": 0.3,
"Lifetime": 3,
"Spin": true,
"HeadshotDamage": 150
}
Translations for VIP:
"ThrowingKnives": "Throwing Knives"
Online7