Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

CS2D Command sv_friendlyfire

Categories

Parameters

  • FF (0/1): allow to hurt teammates?

Info

Select if you want players to be able to hurt and even kill their teammates (1) or not (0, default). In game modes without teams this setting has no effect because you can kill everyone anyway. However there are some additional things which are affected by this setting:

It also controls the damage of your own weapons on yourself. You can hurt yourself with your own grenades for instance when friendly fire is enabled. You can't hurt yourself this way when friendly fire is disabled.

Turrets never hurt yourself or teammates. The only exception is deathmatch mode where your own turret can kill you when friendly fire is enabled (it won't aim at you but you can get hurt when you are standing in its line of fire).

Lua Hook Lua Hooks

Lua Command Lua Commands