-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSGO.cs
More file actions
42 lines (37 loc) · 1.04 KB
/
CSGO.cs
File metadata and controls
42 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using BattleBitAPI.Common;
using BBRAPIModules;
using DynamicGamemodes;
namespace DynamicGamemodes;
public class Csgo : GameMode
{
public Csgo(DynamicGameModes r) : base(r)
{
Name = "CSGO";
}
public override void Init()
{
R.Server.ServerSettings.PlayerCollision = true;
R.Server.ServerSettings.FriendlyFireEnabled = true;
if (R.Server.Gamemode != "Rush")
{
// dunno
}
}
//Buy system maybe
public override OnPlayerKillArguments<RunnerPlayer> OnAPlayerDownedAnotherPlayer(
OnPlayerKillArguments<RunnerPlayer> args)
{
var victim = args.Victim;
var killer = args.Killer;
victim.Modifications.CanDeploy = false;
victim.Modifications.CanSpectate = false;
victim.Kill();
return base.OnAPlayerDownedAnotherPlayer(args);
}
public override void Reset()
{
R.Server.ServerSettings.PlayerCollision = false;
R.Server.ServerSettings.FriendlyFireEnabled = false;
base.Reset();
}
}