• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Shellshocks
#1
Hello, Nyan Cat

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
  Reply
#2
/facepalm
dog_bite dont work .... this is from sp
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply
#3
(07-27-2011, 16:21)Se7en Wrote: /facepalm
dog_bite dont work .... this is from sp

I thought all work, Undecided
  Reply
#4
You have used this in your OMA zombie mod in a different way.
  Reply
#5
(08-01-2011, 09:05)_Smile_Man_ Wrote: You have used this in your OMA zombie mod in a different way.

No, not all this, just a few things. Tongue
  Reply
#6
Ihaven't got inspiration for my following mod.
can you help me yamato?
  Reply
#7
(08-01-2011, 10:40)_Smile_Man_ Wrote: Ihaven't got inspiration for my following mod.
can you help me yamato?

I am really busy sorry, Undecided
  Reply
#8
(08-01-2011, 10:59)Yamato Wrote:
(08-01-2011, 10:40)_Smile_Man_ Wrote: Ihaven't got inspiration for my following mod.
can you help me yamato?

I am really busy sorry, Undecided

k, but nice tutorials that you make!

  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)