Left 4 Dead 2

Left 4 Dead 2

评价数不足
Railgun Sg552 (Vscript)
   
奖励
收藏
已收藏
取消收藏
Game Content: Weapons, Scripts
Game Modes: Single Player, Co-op
Weapons: Rifle
文件大小
发表于
更新日期
36.887 KB
8 月 2 日 上午 7:24
8 月 30 日 下午 9:00
3 项改动说明 ( 查看 )

订阅以下载
Railgun Sg552 (Vscript)

在 kurochama 的 1 个合集中
Unique Weapons with Special Features
66 件物品
描述
This one was inspired by "Dark Knight" rifle on CSO (now Counter Strike: Nexon) & my "Desperado Dual Pistols".Back then, other than "Ak47 Paladin", this is one of anti-zombie guns I used to fight zombie boss when "Ak47 Paladin" dealt weaker damage. As I already got some clues from "Pipe Shotgun" custom weapon about how to make it, so I made it for fun :D .

This mod is similar to "Railgun Hunting Rifle", but it gives a special upgrade to sg552 to allow "Railgun Shot". "Railgun Shot" will leave some electrical traces when shot. I'll explain later on the mechanisms below.


List of features available on "railgun sg552.txt" cfg file:
  1. rifle_sg552_railgun_user: Who can use railgun (bots/ players/ all). For bots, they have 10% chance to use railgun shot on each shot. For players, they need to use scope in order to shoot railgun bullet. The value also affects whether bots will prioritize in using railgun on special, tank & witch.

  2. rifle_sg552_railgun_mode: Which mode is used. 0= Manual mode (a custom cvar, "kuro_railgun_sg552_mode", can be used to toggle on/off railgun shot). 1= AUto mode (always railgun bullet when using scope)

  3. rifle_sg552_railgun_damage: The base damage of the railgun shot. The final damage is 2-3x damage of this base damage.

  4. rifle_sg552_railgun_gore_mode: When enabled, common infected killed with railgun shot will have parts of their body destroyed/ gibbed (not really useful, as rifle bullet already gibs a common.This is just for a complementary).

  5. rifle_sg552_railgun_ammo_used: How much ammo is used on each railgun shot. 0= No additional ammo used. 1 or higher= Additional (1 * value) ammo used.


Mechanisms of "Railgun Sg552":
  • When you have ammo clip more than the value on "rifle_sg552_railgun_ammo_used", you can use railgun shot when using scope.

  • "rifle_sg552_railgun_mode" controls whether the "Railgun Shot" is automatically used when using scope or not. When it's set to 0 (Manual Mode), a custom cvar "kuro_railgun_sg552_mode" is needed to enable/ disable "Railgun Shot". You can use alias to toggle on/off "Railgun Shot" like how flashlight works, for example like this on "v" key:
    alias sg552rail+ "kuro_railgun_sg552_mode 1; cl_colorblind 1; bind v sg552rail-" alias sg552rail- "kuro_railgun_sg552_mode 0; cl_colorblind 0; bind v sg552rail+" bind v sg552rail+

  • "Railgun Shot" leaves some electrical traces when used & some small sparks when the bullet hits objects other than zombies. When hitting zombies, there will be extra blood splatters.

  • "Railgun Shot" has 100% accuracy as long as the target is at the center of crosshair.

  • "Railgun Shot" causes a short delay after use, like 0.5 second, so it can't be spammed.

  • "Railgun Shot" final damage is 2-3x damage from the value of "rifle_sg552_railgun_damage". Normal rifle bullet damage is still applied, so basically the final damage is 2nd damage after the normal bullet damage.

  • "Railgun Shot" causes short knockback to the shooter. For the zombies, common & witch will stumble if they're not killed in one shot, while special infected & tank will be pushed back quite far.

  • "Railgun Shot" can hinder charger's charge attack when he's shot during charging. Charger shot with "Railgun Shot" will stop for around 0.5 second before he starts charging again. Sometimes it completely cancels his charging attack. If the damage is set high, it can kill charger even when he's charging.

  • "Railgun Shot" bypasses riot zombie's armor.

  • As "Railgun Shot" can damage object, it can also damage custom enemies/ bosses in custom campaigns.

  • Survivor teammates are immune to "Railgun Shot" damage. However, they will still take the normal rifle bullet damage.


CREDITS:


NOTES:
  • As "Railgun Shot" can cause a knockback, player can use it to give additional upward knockback after jumping by shooting downward when in the air, though the knockback is only in short range.
7 条留言
kurochama  [作者] 10 月 14 日 下午 1:18 
@bacorjohnray , did you use scope when shooting? The automatic mode can only shoot railgun when in scope mode.
bacorjohnray 10 月 14 日 上午 11:38 
@kurochama it still doesn't work i hold tab & reload several times but its the same result.
kurochama  [作者] 10 月 14 日 上午 8:49 
& set "rifle_sg552_railgun_mode" to 1 to use railgun automatically when using scope (if you want to test).
kurochama  [作者] 10 月 14 日 上午 8:47 
@bacorjohnray , try to hold Tab & then reload several times. Sometimes if there are too many mods, the settings will fail to load from the starting chapter, so you need to load manually with Tab + Reload several times.
bacorjohnray 10 月 14 日 上午 1:38 
this one don't work too...i fired many times but it don't work no matter i tried
kurochama  [作者] 8 月 8 日 下午 3:05 
@ junk dunkster , there are some mods that can be used as references. Rectus's custom weapon mods are some of the examples. To put it simply, to generate a special effects you'll need to spawn "info_particle_system" & set the target of the particle effect.
junk dunkster 8 月 8 日 下午 1:17 
how do you make the custom weapon effects? is there a tutorial somewhere that explains it?