Forum

> > CS2D > Scripts > Molotov without explosion request
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Molotov without explosion request

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Molotov without explosion request

mrc
User Off Offline

Zitieren
Anybody is able to reproduce this script?

https://youtu.be/s_KCXLD__GU

I tried this but it still instakill if you have less health than the damage of explosion.

1
2
3
4
5
6
7
8
9
addhook("hit","_hit")
function _hit(id,source,weapon,hpdmg,apdmg)
local hp = player(id,"health")
     if weapon == 73 then
          if hpdmg > 4 then              
               timer(0,"parse","sethealth "..id.." "..hp)
          end
     end
end

alt Re: Molotov without explosion request

Masea
Super User Off Offline

Zitieren
What happens in that script is basically removing the original projectile whenever a player attacks with it (cs2d lua hook attack). Afterwards, you are just creating your own custom projectile and do anything with it.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht