Page 1 of 1

Let the streets run red with blood!

Posted: 06 Apr 2013, 01:04
by Sektor

Re: Let the streets run red with blood!

Posted: 06 Apr 2013, 21:38
by elypter
does this only kill peds or also players2

Re: Let the streets run red with blood!

Posted: 07 Apr 2013, 03:14
by Sektor
You can change it so it doesn't kill players. In the video, I got ran over because it killed the gangcar driver and the car just kept going :)

[mis]
PLAYER_PED p1 = ( 149.0 , 195.0 , 255.0 ) 22 0

COUNTER true = 1
COUNTER charpointer = 0 // If you don't want to kill player 2-6, set to 3960 ( 6 x 660 )
CHAR_DATA c

LEVELSTART

WHILE_EXEC ( true = 1 )

SET charpointer = ( charpointer + 660 )
SET c = ( p1 + charpointer )
KILL_CHAR ( c ) // Kills peds
DELETE_ITEM ( c ) // Makes peds vanish, speeds up recycling, so more blood

IF ( charpointer > 6600 ) // 10 x 660 (each character has a struct of 660 bytes)
SET charpointer = 0 // If you don't want to kill player 2-6, set to 3960 ( 6 x 660 )
ENDIF

ENDWHILE

LEVELEND
[/mis]

Re: Let the streets run red with blood!

Posted: 07 Apr 2013, 08:20
by T.M.
Can you make them electrocuted instead? (with that animation on ground).

How about making them on fire?

Re: Let the streets run red with blood!

Posted: 07 Apr 2013, 08:28
by Sektor
Electrocution was crashing for some reason (maybe I need to make sure they aren't in a car) but you can make every tile electric with STY tool, I did that on a Tron map and it was stable. I did make everyone I punch do that electrocution animation for a different script.

I haven't found out how to give a ped the burning animation yet. I found a way to make them lose health like they are on fire and if they are a player, it will say toasted but it doesn't show any flames because that must be at a different address.

Re: Let the streets run red with blood!

Posted: 07 Apr 2013, 09:14
by T.M.
Sektor wrote:I haven't found out how to give a ped the burning animation yet. I found a way to make them lose health like they are on fire and if they are a player, it will say toasted but it doesn't show any flames because that must be at a different address.
I guess its not even possible, the game probably needs another command to add the fire animation, and that cannot be accessed by simply SET command hacks.

Though, Vike could make it possible ;)