Englisch Barbed Wire Lua (Y.A.T.E.S) icon

19 Kommentare
27.11.16 23:21:04
like 13 mögen es!
2 kb, 23 Downloads
Rainoth
Moderator
Offline Off
In short, a more realistic barbed wire.

I remembered the stereotypical "crawl under the barbed wire" scene from many movies and it was odd how CS2D doesn't handle it that way. So I made it do it.

Here's how it works:
If you run through a barbed wire, you'll sustain damage.
If you walk through a barbed wire, you won't sustain damage.

In other words, trade off speed to prevent injury or sustain injury to get to your goal faster.

You still damage the barbed wire if you walk through it. I am unsure if I should count this as a desired or undesired effect.

Installation >


Hopefully this will be useful.

P.S. I can include a bunch of pictures of me near barbed wires if you guys are into that

Cheers,
user Rainoth
9× editiert, zuletzt 28.11.16 17:54:03
ok Diese Datei wurde geprüft und zugelassen von Sparty (27.11.16 23:38:44)

Kommentare

19 Kommentare
Gehe zu Seite
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen
31.12.16 18:42:27
like Ich mag es!
Hoch
Pseudon
User
Offline Off
The barbed wire shouldn't be damage when you walk through it as you should be touching no barbs walking carefully, right?

Nothing special, and too simple... but would work even better when having fields of barbed wire in a custom map, with a custom story etc. that requires a certain path to be followed and this could be a nice mini puzzle here and there.

I would've rather made a new "custom entity", with new effects and image. This is a good idea and can be developed further, but I can bet it won't happen.
06.12.16 19:26:40
like Ich mag es!
Hoch
douglasmiguel7
User
Offline Off
very good... congrats bro
30.11.16 15:07:12
like Ich mag es!
Hoch
ZxC
Moderator
Offline Off
Neatly written and great idea.
28.11.16 20:44:17
like Ich mag es!
Hoch
VADemon
User
Offline Off
@user Rainoth: @user Powermonger: Oh, I thought that it's based onTile. Sorry ^_^*
28.11.16 18:51:13
like Ich mag es!
Hoch
Powermonger
User
Offline Off
This should do the trick:

addhook("movetile","barbed_movetile")
function barbed_movetile(id,x,y,walk)
     if object(objectat(x,y),"type")==2 and walk == 0 then
          if player(id,"health")>10 then
               parse("sethealth "..id.." "..player(id,"health")-10)
          else
               parse("customkill "..player(object(objectat(x,y),"player"),"name").." Barbed Wire "..id)
          end
     end
end

Damages 10 when moving to the tile (not constantly moving inside the tile).
I believe this is what VADemon meant...?

EDIT: Although, movetile hook doesn't support parameter walk, so this doesn't work...
1× editiert, zuletzt 04.12.16 18:20:25
28.11.16 18:37:50
Hoch
Rainoth
Moderator
Offline Off
@user VADemon: It may be 1 damage but that 1 damage is applied many times. Each tile has 32 pixels so depending on how you move (and you normally don't move in straight lines when fighting), you can actually suffer more than 20 damage per tile.
In other words, if you're smart about pathing (like say you walk on the edge of barbed wire), you'll lose 2-3 hp, compared to boldly walking across it and losing 20 or more.
28.11.16 18:29:55
like Ich mag es!
Hoch
VADemon
User
Offline Off
@user Rainoth:
Currently the player suffers only 1 damage, that's not noticable even in normal game modes.
You can repair the damage caused to barbed wires with cs2d cmd damageobject so they are damaged only 5-10% otherwise a player can destroy barbed wires with too much ease.
28.11.16 17:53:12
like Ich mag es!
Hoch
Yates
Reviewer
Offline Off
Y.A.T.E.S support 10/10
28.11.16 17:30:39
Hoch
Rainoth
Moderator
Offline Off
@user VADemon: Elaborate please.
If a player walks through the wire, he'll STILL suffer roughly half the damage he'd normally do and the wire will suffer half the damage too.
If a player runs through the wire, it'll work like it currently does in the script.
Did I understand it correctly?
Not sure how to respond, I liked the idea of bypassing the barbed wires by moving more slowly. I guess I could create an option to work both ways depending on what the host prefers.

P.S. Made it possible to use this as a plugin with Y.A.T.E.S.
28.11.16 16:40:08
like Ich mag es!
Hoch
SlowPoke101
User
Offline Off
hi all i like
28.11.16 15:22:52
like Ich mag es!
Hoch
VADemon
User
Offline Off
Yeah I think the wire shouldn't take any damage and the player should take maybe 50% of the damage, so it's a more balanced trade-off.
Simple and cool idea.
28.11.16 11:27:41
like Ich mag es!
Hoch
xsiN
User
Offline Off
I don't see the screenshots so you forced me to test it myself.

Looks decent enough for a like.
28.11.16 11:16:24
like Ich mag es!
Hoch
Mora_rus
User
Offline Off
lel, with a screenshoot i get full idea :d
oky, this is a nice one thing :d even maybe kinda imb. Anyway sadly that it damages. I can quickly remove a wire when move at the edge of tiles.
Here take a like
28.11.16 10:46:07
like Ich mag es!
Hoch
ohaz
User
Offline Off
Neat idea
28.11.16 10:45:50
like Ich mag es!
Hoch
kerker
User
Offline Off
Good!
28.11.16 07:43:48
like Ich mag es!
Hoch
Jite
User
Offline Off
cool.
28.11.16 01:52:46
Hoch
Rainoth
Moderator
Offline Off
@user xsiN: Lmao. Okay √
Here you go
IMG:https://sc-cdn.scaleengine.net/i/625499591219c6fe6c134f7474a245af.png
28.11.16 01:40:01
like Ich mag es!
Hoch
xsiN
User
Offline Off
Screenshots please
28.11.16 00:18:14
like Ich mag es!
Hoch
Salad Fingers
Super User
Offline Off
Beautiful baby

Shut up and take my like!
Zum Anfang Vorherige 1 Nächste Zum Anfang