Forum

> > CS2D > Scripts > Molotov Impact but not flames damage ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Molotov Impact but not flames damage ?

7 replies
To the start Previous 1 Next To the start

old Molotov Impact but not flames damage ?

Rainoth
Moderator Off Offline

Quote
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

old Re: Molotov Impact but not flames damage ?

Alistaire
User Off Offline

Quote
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.

old Re: Molotov Impact but not flames damage ?

Conscience
User Off Offline

Quote
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:
More >
edited 3×, last 23.05.13 10:36:22 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview