07-27-2011, 11:24
Hello, 
Another tutorial, this time about shellshocks, in a easy way:
First of all, how to precache a shellshock that you are going to use, goes in Init():
To play a shellshock on a player:
To stop a shellshock use:
You can also make some "custom" "shellshocks"/earthquakes like this: go into _shellshock.gsc and at the bottom you will find a few: something_earthquake(), lets make our own one:
Now we can just thread it to get our "custom shellshock" and it will play those effects on the player:
A list of shellshocks, you can find the rest with FF viewer, all this shocks are files called like pain.shock:

Another tutorial, this time about shellshocks, in a easy way:
First of all, how to precache a shellshock that you are going to use, goes in Init():
Code:
PrecacheShellshock("shellshock name");
To play a shellshock on a player:
Code:
self shellshock("shellshock you precached", time to play the shellshock);
To stop a shellshock use:
Code:
self StopShellShock();
You can also make some "custom" "shellshocks"/earthquakes like this: go into _shellshock.gsc and at the bottom you will find a few: something_earthquake(), lets make our own one:
Code:
tutorial_earthQuake()
{
PlayRumbleOnPosition( "artillery_rumble", self.origin );
earthquake( 1, 1, self.origin, 1000 );
self shellshock("death", 2); //remember to precache "death" shellshock.
}
Now we can just thread it to get our "custom shellshock" and it will play those effects on the player:
Code:
self thread maps\mp\gametypes\_shellshock::tutorial_earthQuake();
A list of shellshocks, you can find the rest with FF viewer, all this shocks are files called like pain.shock:
Code:
death
pain
damage_mp
ac130
barrett
concussion_grenade_mp
default
dog_bite
estate_bouncingbetty
airport
flashbang_mp
frag_grenade_mp
tankblast
teargas
victoryscreen