Author Topic: GTA V Death  (Read 3137 times)

I don't understand why it takes this long to make something like this. I gave the code, lol.

I don't understand why it takes this long to make something like this. I gave the code, lol.
Pretty much done on my part: http://www.mediafire.com/download/jt2t22cdx61ybk7/Server_Wasted.zip

Issues:
Sound won't play.
Timescale won't change.

If someone could fix those that would be great.


Oh, I didn't see the issues. I will take a look.

It was not coded correctly.

Source:


datablock AudioProfile(DedWasted)
{
   filename = "./Wasted.wav";
   description = AudioClosest3d;
   preload = false;
};

package GTADeath
{
    function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
    {
      serverPlay2D(DedWasted); //Needs a datablock, not the file
      commandtoclient(%client,'SetVignette',1, "0 0 0 255");
      %client.bottomprint("<color:990000><font:Impact:30>WASTED",5,0);
      //commandToclient(%client,'setTimescale',0.5); - You have to find another way of how it will work since it is calling that the player is dead
      Parent::onDeath(%client,%obj,%killer,%type,%location);
    }
};
activatepackage(GTADeath);


Download
« Last Edit: February 09, 2014, 01:29:20 PM by Advanced Bot »

Oh, I didn't see the issues. I will take a look.

It was not coded correctly.

Source:


datablock AudioProfile(DedWasted)
{
   filename = "./Wasted.wav";
   description = AudioClosest3d;
   preload = false;
};

package GTADeath
{
    function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
    {
      serverPlay2D(DedWasted); //Needs a datablock, not the file
      commandtoclient(%client,'SetVignette',1, "0 0 0 255");
      %client.bottomprint("<color:990000><font:Impact:30>WASTED",5,0);
      //commandToclient(%client,'setTimescale',0.5); - You have to find another way of how it will work since it is calling that the player is dead
      Parent::onDeath(%client,%obj,%killer,%type,%location);
    }
};
activatepackage(GTADeath);


Download
ily

Oh, I didn't see the issues. I will take a look.

It was not coded correctly.

Source:


datablock AudioProfile(DedWasted)
{
   filename = "./Wasted.wav";
   description = AudioClosest3d;
   preload = false;
};

package GTADeath
{
    function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
    {
      serverPlay2D(DedWasted); //Needs a datablock, not the file
      commandtoclient(%client,'SetVignette',1, "0 0 0 255");
      %client.bottomprint("<color:990000><font:Impact:30>WASTED",5,0);
      //commandToclient(%client,'setTimescale',0.5); - You have to find another way of how it will work since it is calling that the player is dead
      Parent::onDeath(%client,%obj,%killer,%type,%location);
    }
};
activatepackage(GTADeath);


Download
Why's it bottom print? GTA V has it center print.

Why's it bottom print? GTA V has it center print.
because if it used center print it would just go away when it center pains "click to respawn" and stuff

Why not draw/load an image ("Wasted" text) in the center of the screen?

Why not draw/load an image ("Wasted" text) in the center of the screen?
The only way I can think of doing that is to use bitmaps, which won't work.

Oh, I didn't see the issues. I will take a look.

It was not coded correctly.

Source:


datablock AudioProfile(DedWasted)
{
   filename = "./Wasted.wav";
   description = AudioClosest3d;
   preload = false;
};

package GTADeath
{
    function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
    {
      serverPlay2D(DedWasted); //Needs a datablock, not the file
      commandtoclient(%client,'SetVignette',1, "0 0 0 255");
      %client.bottomprint("<color:990000><font:Impact:30>WASTED",5,0);
      //commandToclient(%client,'setTimescale',0.5); - You have to find another way of how it will work since it is calling that the player is dead
      Parent::onDeath(%client,%obj,%killer,%type,%location);
    }
};
activatepackage(GTADeath);


Download
Is this the fixed version of the code?


I don't see an issue with just adding a swatch/bitmap to the center. The only issue is that you have to figure out how it will stay in the middle of the screen. (Which is doing math to the position)

What's the issue with keeping it in the center? Aren't bitmaps in the center by default for the client?

What's the issue with keeping it in the center? Aren't bitmaps in the center by default for the client?
I mean without using centerprint.

Without using centerprint, you sometimes have to use some math to center it.

Dont do timescale, so it's better for MP