English Molotov without explosion request

5 replies
Goto Page
To the start Previous 1 Next To the start
Up
mrc
User
Offline Off
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.

Code:
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
CS2DBR Community - http://cs2dbr.tk
25.07.20 06:41:59 pm
Up
Masea
Super User
Offline Off
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.
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Modification (28)
25.07.20 11:23:45 pm
Up
mrc
User
Offline Off
Here is the full script plus smoke extinguish flames.

Code:
1
broken
edited 11×, last 22.09.20 06:44:19 pm
CS2DBR Community - http://cs2dbr.tk
27.07.20 10:13:41 am
Up
Gaios
Security Supporter
Offline Off
You should never use cs2d lua hook always
27.07.20 10:58:35 am
Up
The Dark Shadow
User
Offline Off
You better do some optimizations.
22.09.20 06:46:25 pm
Up
mrc
User
Offline Off
I still need help with this, I'm having two problems and I don't know how to fix it. The first one is, if you throw the molotov in a place where has a smoke grenade (after it extinguish) the molotov doesnt burn. The second one is, sometimes players throw molotov and it just doesnt burn for whatever reason (maybe ping/lag occurs this?).

Spoiler >
edited 1×, last 23.09.20 09:04:41 pm
CS2DBR Community - http://cs2dbr.tk
To the start Previous 1 Next To the start