Quote:
Originally Posted by TF2CutContentWiki
Haven't touched this in years but I've been bored lately so I'll try messing around with this and re-sharpening my SourceMod skills.
|
You can copy it from here
For insurgency (checkpoint mode):
- Only bots trigger it
- Plant using custom c4 weapon. Must be added via custom theater weapon like here:
https://steamcommunity.com/sharedfil...?id=2779377093
PHP Code:
"weapon_c4_tripmine"
{
"import" "weapon_base"
"weapon_class" "other_explosive"
"weapon_type" "grenade"
"print_name" "#weapon_c4_tripmine"
"print_desc" "#weapon_c4_tripmine_desc"
"view_model" "models/weapons/v_c4_tm_sec.mdl"
"world_model" "models/weapons/w_c4_tm.mdl"
"weapon_slot" "explosive"
"weapon_max_subslot" "1"
"act_table" "grenade"
"weapon_weight" "0"
"weapon_cost" "3"
"class_restricted" "0"
"explosives"
{
"entity" "grenade_c4_tripmine"
"GrenadeRollSpeed" "0"
"GrenadeRollSpeedProne" "0"
"GrenadeRollUpSpeed" "0"
"GrenadeRollUpSpeedProne" "0"
"GrenadeThrowSpeed" "400"
"GrenadeThrowSpeedProne" "350"
"RemoteDetonation" "0"
"AllowPlant" "1"
}
"ammo_clip"
{
"ammo_type" "grenade_c4_tripmine"
"clip_max_rounds" "-1" // no clips
"clip_default" "1"
}
"team_access" "security, insurgent"
}
- Added particle explosion effect of c4
- c4 planting voice notifications
edit:
- Added command for clients:
PHP Code:
RegConsoleCmd("tmrgb", Command_TripMineColour, "Set RGB colour of your trip mine laser");
edit2: - Added 2 more commands for clients:
PHP Code:
RegAdminCmd("tmrgbrandomalways", Command_TripMineRngAlways, ADMFLAG_RESERVATION, "[toggle cmd] Randomise your trip mine laser colour every time (reserved slot access only)");
RegConsoleCmd("tmrgbrandom", Command_TripMineRandomRgb, "Set a random RGB colour of your trip mine laser");
edit3: tweaks & cfg file
edit4: cookie support
edit5: check for too many spaces in cmd
edit6: A Player can pick up his own deployed trip mines with the USE key.
edit7: Pick up distance check