Forum

> > CS2D > Scripts > Fireball
Forums overviewCS2D overview Scripts overviewLog in to reply

English Fireball

6 replies
To the start Previous 1 Next To the start

old Fireball

Mora
User Off Offline

Quote
Hello us
Maybe someone have this script:
when player(on pairs, ipairs) attack with machete, then will effect with Fire as projectile:
the red box-is radius for damage players, -35hp.
IMG:https://i.pixs.ru/storage/3/1/2/dedust0000_7314229_11151312.jpg

this fireball will:
stop at player, and at wall.
If this so hard, no make it for me.I`ll ask other.
Thanks

sorry for copy Topics, my pc make lags =/
edited 1×, last 08.03.14 07:27:13 am

old Re: Fireball

Rainoth
Moderator Off Offline

Quote
just make a custom object - projectile and add "effect" as it flies.

old Re: Fireball

Mora
User Off Offline

Quote
@user Rainoth:Very nice idea!This is possible to add effect on projectile?
ex:
i wanna snowball, this dmg -35.
How i can do it?

old Re: Fireball

Rainoth
Moderator Off Offline

Quote
as in negative 35 ? So it heals ?

1
2
3
4
5
6
7
8
9
parse("mp_wpndmg Snowball 0")
damage = 35

addhook("hit","h")
function h(id,sour,wep)
	if wep == 75 then
		parse("sethealth "..id.." "..player(id,"health")+damage)
	end
end

old Re: Fireball

Mora
User Off Offline

Quote
No heal, attack[35 damage].
When attack with machete, projectile with balls, they with fire(effect)projectile snowballs 1000[pixel].
Snowballs, when it stop, will not fire.

old Re: Fireball

Rainoth
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("always","yey")
function yey()
	for _,p in pairs(projectilelist(0,0)) do
		if projectile(p.id,p.player,"type")==75 then
			parse("effect \"fire\" "..math.floor(projectile(p.id,p.player,"x")).." "..math.ceil(projectile(p.id,p.player,"y")).." 1 1")
		end
	end
end

old Re: Fireball

Mora
User Off Offline

Quote
@user Rainoth: thank you, you really good person, you help me more times! Thanks you so much
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview