Left 4 Dead 2

Left 4 Dead 2

34 个评价
Tank Trigger Alarm Car
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
文件大小
发表于
更新日期
26.926 KB
4 月 28 日 上午 3:50
10 月 9 日 上午 12:25
2 项改动说明 ( 查看 )

订阅以下载
Tank Trigger Alarm Car

在 skysky199 的 2 个合集中
Script List
155 件物品
Script List <Infected>
25 件物品
描述
--僅於區域/專用伺服器生效--
--Works on local/dedicated servers only.--

※需要 開啟Scripted Mode
※Requires enable Scripted Mode.

Tank 攻擊警報車後會響

Alarm cars will trigger when a tank attacks them.
10 条留言
skysky199  [作者] 9 月 25 日 上午 2:40 
@Interneted

AllowTakeDamage is used because the car damaged by a tank cannot be triggered by the input "SurvivorStandingOnCar".
Therefore, it's necessary to stop the car from taking damage before triggered.
Interneted 9 月 25 日 上午 12:55 
I can suggest a better alternative without using scripted mode's AllowTakeDamage.

Since prop_car_alarm is technically a prop_physics, there are outputs in prop_physics you can use as hooks, OnTakeDamage and OnHitByTank.

https://developer.valvesoftware.com/wiki/Prop_physics

Anyways, great scripts you have made :steamthumbsup:
Unsants 7 月 13 日 下午 7:03 
:steamthumbsup:
skysky199  [作者] 6 月 7 日 上午 8:39 
@Machoboy197

There's no way to detect if a charger hit a alarm car in VScript.
At least I don't know.
Machoboy197 6 月 5 日 下午 2:33 
Now do one for the Charger
skysky199  [作者] 5 月 24 日 上午 12:42 
@(^^^) Xeno

If that is a plugin, it may also work for all source games. Since that probably based on the limitations of entity spawning.
You can try.
(^^^) Xeno 5 月 23 日 下午 10:29 
The edict thing I noticed that to some TF2 servers for optimising any maps and it works very well. I just don't know it would be possible for L4D, just curious.
skysky199  [作者] 5 月 23 日 下午 10:12 
@(^^^) Xeno

What do you mean by "set edicts back to 1"?
Do you mean solving "ed_alloc no free edicts"?
I think the only one safe way is modifying the map file, as it has too many edicts.
(^^^) Xeno 5 月 23 日 下午 2:24 
I'm curious if you can create a edicts refresher the edicts will set back to 1 in a few minutes. It's a map or source optimisation thing it will be a huge help for preventing game crashes.
Muz 4 月 28 日 上午 6:27 
:tank::tank: