Forum

> > CS2D > Scripts > Molotov Impact but not flames damage ?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Molotov Impact but not flames damage ?

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Molotov Impact but not flames damage ?

Rainoth
Moderator Off Offline

Zitieren
Is it possible to change molotov impact value ?

I tried to make a code to return 1 on hit and do -20 health on hit but it didn't work. How could I leave the flame damage (which is 4) and change the Impact damage to something weaker (since at my script many molotovs in cramped space result in a big damage, therefore I'd like to reduce it)

Thanks for help

alt Re: Molotov Impact but not flames damage ?

Alistaire
User Off Offline

Zitieren
You could simulate molotov impact, by freeing the projectile just when it's thrown. Then you use a tween to simulate the projectile being thrown, and when it hits the desired position, you could parse(effect) every 250ms or so.

Or do the easy thing, and find out what weapontype the flames are. You can then return 1 if the damage is from that weapon.

alt Re: Molotov Impact but not flames damage ?

Conscience
User Off Offline

Zitieren
The impact damage is obviously bigger than the flame damage. So check if the weapon is molotov on hit and if the damage is bigger than 4 reset the player's hp a moment after (timer) so that it gives CS2D the chance to take the hp away, and you give it back moments later.
This way your flame damage still occurs and you get away with your own little return 1 for the impact.

• Edit:
Mehr >
3× editiert, zuletzt 23.05.13 22:36:22
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht