Forum

> > CS2D > Scripts > Molotov without explosion request
Forums overviewCS2D overview Scripts overviewLog in to reply

English Molotov without explosion request

5 replies
To the start Previous 1 Next To the start

old Molotov without explosion request

mrc
User Off Offline

Quote
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

old Re: Molotov without explosion request

Masea
Super User Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview