Official SMOD2D Developer Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Official SMOD2D Developer Forum

We've moved FORUMS. Also, do remember that the MOD is dead but we're working on the REAL GAME NOW.
 
HomePortalLatest imagesSearchRegisterLog in

 

 Double/Half damage (for kill streak)

Go down 
4 posters
AuthorMessage
Dark Byte

Dark Byte


Posts : 88
Join date : 2010-06-05
Location : USA

Double/Half damage (for kill streak) Empty
PostSubject: Double/Half damage (for kill streak)   Double/Half damage (for kill streak) Icon_minitimeMon Jun 07, 2010 3:10 am

This should last 25~60 seconds (you decide), and the streak count could come before napalm and after arty (again you decide). I have already written the code for it.

-------------------------------------------------------
addhook("hit", "smod_hit")

function smod_hit (id,source,weapon,hpdmg,apdmg)
if ( smod.streak[source] > somenumber ) then
hpdmg = hpdgm*2; apdmg = apdmg*2
end

if ( smod.streak[id] > somenumber ) then
hpdmg = hpdmg/2; apdmg = apdmg/2
end
parse("sethealth "..id.." "..(player(id, "health")-hpdmg))
parse("setarmor "..id.." "..(player(id, "health")-apdmg))
return 1
end
---------------------------------------------------------

Note: Replace somenumber that is by the ifs to the streak number
Back to top Go down
Yorty




Posts : 162
Join date : 2010-06-02

Double/Half damage (for kill streak) Empty
PostSubject: Re: Double/Half damage (for kill streak)   Double/Half damage (for kill streak) Icon_minitimeMon Jun 07, 2010 3:36 am

Dark Byte wrote:
This should last 25~60 seconds (you decide), and the streak count could come before napalm and after arty (again you decide). I have already written the code for it.

-------------------------------------------------------
addhook("hit", "smod_hit")

function smod_hit (id,source,weapon,hpdmg,apdmg)
if ( smod.streak[source] > somenumber ) then
hpdmg = hpdgm*2; apdmg = apdmg*2
end

if ( smod.streak[id] > somenumber ) then
hpdmg = hpdmg/2; apdmg = apdmg/2
end
parse("sethealth "..id.." "..(player(id, "health")-hpdmg))
parse("setarmor "..id.." "..(player(id, "health")-apdmg))
return 1
end
---------------------------------------------------------

Note: Replace somenumber that is by the ifs to the streak number
Making someone uber strong during it? No, bad idea.
Back to top Go down
Dark Byte

Dark Byte


Posts : 88
Join date : 2010-06-05
Location : USA

Double/Half damage (for kill streak) Empty
PostSubject: Re: Double/Half damage (for kill streak)   Double/Half damage (for kill streak) Icon_minitimeMon Jun 07, 2010 6:29 am

I did not mean half damage and double damage it could be a random thing, but for that you would need a new array
Back to top Go down
Yorty




Posts : 162
Join date : 2010-06-02

Double/Half damage (for kill streak) Empty
PostSubject: Re: Double/Half damage (for kill streak)   Double/Half damage (for kill streak) Icon_minitimeMon Jun 07, 2010 9:51 am

Dark Byte wrote:
I did not mean half damage and double damage it could be a random thing, but for that you would need a new array
Adding a game of chance to a mod like this isn't a good idea. Seems like something more suited for superhero mod.
Back to top Go down
Killahamsta




Posts : 71
Join date : 2010-05-17

Double/Half damage (for kill streak) Empty
PostSubject: Re: Double/Half damage (for kill streak)   Double/Half damage (for kill streak) Icon_minitimeMon Jun 07, 2010 10:44 am

opinions are opinions, wait for spy's reply.
Back to top Go down
Yorty




Posts : 162
Join date : 2010-06-02

Double/Half damage (for kill streak) Empty
PostSubject: Re: Double/Half damage (for kill streak)   Double/Half damage (for kill streak) Icon_minitimeMon Jun 07, 2010 10:58 am

Killahamsta wrote:
opinions are opinions, wait for spy's reply.
This isn't a good idea for a "tactical" shooter, and I'm sure many would agree. But yes, it is opinion.
Back to top Go down
Spyware
Project Administration Leader(your PAL)
Spyware


Posts : 256
Join date : 2010-05-17
Age : 113
Location : Marie Byrd Land, Antarctica

Double/Half damage (for kill streak) Empty
PostSubject: Re: Double/Half damage (for kill streak)   Double/Half damage (for kill streak) Icon_minitimeMon Jun 07, 2010 11:29 am

Coincidentally, we had the "random" damage multiplier idea, where one of those bullets will be an AIDS GIVING one. Then we realized that would make the game a "WHO SEES FIRST" wins.
Back to top Go down
https://smod2d.forumotion.com
Sponsored content





Double/Half damage (for kill streak) Empty
PostSubject: Re: Double/Half damage (for kill streak)   Double/Half damage (for kill streak) Icon_minitime

Back to top Go down
 
Double/Half damage (for kill streak)
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Official SMOD2D Developer Forum :: SMOD2D Project Related :: SMOD2D Suggestions-
Jump to: