Script idea
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Script idea
You guys know how to script/edit GTA2, right?
I had this funny idea that you let it rain peds.
You know that when you shoot a ped with a rocket it goes up and drops down from the sky, can you do that like 10-20 at the same time many different directions and constant? I think it will look funny.
I had this funny idea that you let it rain peds.
You know that when you shoot a ped with a rocket it goes up and drops down from the sky, can you do that like 10-20 at the same time many different directions and constant? I think it will look funny.
"Mmmm, your eyes are so beautiful."
Re: Script idea
I think it's possible with small explosion and at the same coordinates create some peds, All at the same time.
Explosion will occur and peds gonna fly.
Theoretically it should work.
Explosion will occur and peds gonna fly.
Theoretically it should work.
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Script idea
Its doable, just like B-$hep said, create some grenade-sized explosions under spawn points in wich numerous peds spawn at once, so they fly away. But the problem is to make it synchronized, like spawning lots of peds, wait for them to get on floor and only then explode, and also make it loop synchronized is even more difficult, but must be doable.
You just lost the game.
-
- Lunatic
- Posts: 456
- Joined: 19 Jul 2008, 14:14
- GH nick: Razor, R
- Location: Poland / Szczecin
- Contact:
Re: Script idea
explode_small (ped)
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Script idea
yeah that might work too I'll try to make simple script with only one ped spawn point, if it works ill post it here
You just lost the game.
-
- Lunatic
- Posts: 456
- Joined: 19 Jul 2008, 14:14
- GH nick: Razor, R
- Location: Poland / Szczecin
- Contact:
Re: Script idea
do loop:
IF (has_character_died (x))
create char blablalblablal
explode_small (x)
ENDIF
IF (has_character_died (x))
create char blablalblablal
explode_small (x)
ENDIF
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Script idea
It doesnt support multiplayer because it can desynch with explosions. Notice that game can also crash if you play it during a long time
You just lost the game.
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Script idea
Yeah, it does crash a lot.
Thanks for the hard work, but it is not like I had in mind.
The peds are now stuck at one place, is it not possible to let the peds that walk on the street get explode/flying at once...?
Perhaps you can put the script on a weapon/fist that all surrounding people fly away (like with electrogun, but you don't see the electricity) when you punch.
Thanks for the hard work, but it is not like I had in mind.
The peds are now stuck at one place, is it not possible to let the peds that walk on the street get explode/flying at once...?
Perhaps you can put the script on a weapon/fist that all surrounding people fly away (like with electrogun, but you don't see the electricity) when you punch.
"Mmmm, your eyes are so beautiful."
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Script idea
Yeah, its because of the explosions. Too much explosions can cause the game to crash as I said, even if player can't see them.Cuban-Pete wrote:Yeah, it does crash a lot.
No, its not possible to make normal street peds (that are created by game automatically, the peds I made are special chars, those are made in script so I can do whatever I want to do with them) fly away/explode. Only thing I can do with those peds is to create a riot in wich all peds punch all peds and player (aka make them all muggers).Cuban-Pete wrote:The peds are now stuck at one place, is it not possible to let the peds that walk on the street get explode/flying at once...?
I didnt get exactly what you mean. Do you mean like you punch and peds fly away, or like kinda remove the bullets/rockets/electricity from weapons? Or what? Plz explain, so I can actually see if its doable.Cuban-Pete wrote:Perhaps you can put the script on a weapon/fist that all surrounding people fly away (like with electrogun, but you don't see the electricity) when you punch.
Also, I could make for example rockets coming out of walls (not like people firing with rocket launchers, only the actuall rockets in some places on walls, so they hit peds and they fly away), but it takes long to make, takes a lot of script lines and rockets could hit player too.
You just lost the game.
Re: Script idea
It is possible to make anyone you punch explode, including random peds.
STORE_LAST_CHAR_PUNCHED ( char name , store name )
If you make them explode instantly then you will need to make yourself invulnerable but you could put a delay on it.
I used the STORE_LAST_CHAR_PUNCHED command to create my avatar. Everyone I punched got a flamethrower and joined my gang.
STORE_LAST_CHAR_PUNCHED ( char name , store name )
If you make them explode instantly then you will need to make yourself invulnerable but you could put a delay on it.
I used the STORE_LAST_CHAR_PUNCHED command to create my avatar. Everyone I punched got a flamethrower and joined my gang.
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Script idea
If it is possible that you change electric gun that every ped it touches gets an explosion (like hit with a rocket) so that you can "fire" like 5-10 peds at the same time in air. And if that is possible, perhaps remove the gun and apply this to a punch. So you are like almighty Silvester Stallone, you hit them all with a fake punch into the air, lol.Gustavob wrote:I didnt get exactly what you mean. Do you mean like you punch and peds fly away, or like kinda remove the bullets/rockets/electricity from weapons? Or what? Plz explain, so I can actually see if its doable.
"Mmmm, your eyes are so beautiful."
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Script idea
Well thats not possible to do, but as Sektor said, we can store the last punched character and make him explode. Would be funny, but its not possible to do with other weapons, the effect the weapons have in peds/players, unless theres a command that store last char we shoot in . Anyway its possible to do something like
Something like this might work
That will check if player has punched anyone (can include other players if it became a multiplayer level), make player invincible in case he did, waits a delay and explodes the ped, and if I put the correct delay in, ped will fly away. I had to put a delay because if we explode a ped wich is on floor after punch instantly, he will just explode. Try this: steal a ped car and before you get in the car, press enter again and some of the arrows and instantly shoot the ped. Only what will happen is that there will be an explosion in the ped and he will run away or attack you in case he has a pistol. Its needed to make player invincible in case he stays above the ped, so he wont fly with him
Code: Select all
PLAYER_PED player1 = ( 61.5 , 195.5 , 2.0 ) 7 180
CHAR_DATA punched
LEVELSTART
IF ( HAS_CHAR_PUNCHED_SOMEONE ( player1 ) )
STORE_LAST_CHAR_PUNCHED ( player1 , punched )
SET_CHAR_INVINCIBLE ( player1 , ON )
DELAY_HERE (40)
EXPLODE_SMALL ( punched )
SET_CHAR_INVINCIBLE ( player1 , OFF )
LEVELSTART
That will check if player has punched anyone (can include other players if it became a multiplayer level), make player invincible in case he did, waits a delay and explodes the ped, and if I put the correct delay in, ped will fly away. I had to put a delay because if we explode a ped wich is on floor after punch instantly, he will just explode. Try this: steal a ped car and before you get in the car, press enter again and some of the arrows and instantly shoot the ped. Only what will happen is that there will be an explosion in the ped and he will run away or attack you in case he has a pistol. Its needed to make player invincible in case he stays above the ped, so he wont fly with him
You just lost the game.
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Script idea
I haven't looked at coding GTA2, so I don't know how to use that code. Perhaps I should one day...
When you talk about entering car, that reminds me of multiplayer trick where you can kill someone with hitting him 'with the door'. When the other person is almost going to steal your car you need to exit the car and press hit with fist, timing is important.
When you talk about entering car, that reminds me of multiplayer trick where you can kill someone with hitting him 'with the door'. When the other person is almost going to steal your car you need to exit the car and press hit with fist, timing is important.
"Mmmm, your eyes are so beautiful."
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Script idea
EDIT: moved ENDWHILE one line before LEVELEND/one line after the SWITCH_GENERATORS, since the SWITCH_GENERATORS werent working (weapons werent spawning)
You just lost the game.
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Script idea
Haha, very funny effect. If you place the punch correct you can let a close by car explode.
"Mmmm, your eyes are so beautiful."
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Script idea
Guys guys guys guys
I know I'm unearthing a 3 year old topic, but this GTA V cheats video instantly reminded me of this topic (start at 0:55; direct link):
I know I'm unearthing a 3 year old topic, but this GTA V cheats video instantly reminded me of this topic (start at 0:55; direct link):
You just lost the game.