Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaving behind a corpse when u die?


dao
 Share

Recommended Posts

Its easier, as already mentioned above, to make a tile with the skeleton, then go to the NPConDeath sub and then you use SetTile and timers. Thats it. No source edits needed. Unless you wanna make a function so you can directly call it. But meh, 1 extra line of code is not worth it.
Link to comment
Share on other sites

@The:

> if they're asking it in source questions, they want it in SOURCE. learn to read dude. My guess would be to make a timer and have it check the tile for a certain tile and copy and paste some map editor code.

Terrible guess.

The best way of leaving a corpse would be to create a new subroutine to handle the rendering, and set it all up in timers.

Simply have the server counting down for the corpse to disappear, and send the map any updates regarding it.

Then you can even store the corpse frames within the sprite's .bmp file and position it properly.
Link to comment
Share on other sites

@Zultarâ„¢:

> lol admiral. im no good at scripting.

What is the point in posting how to do something, then showing that you are unable to when directed?

As for the task at hand, Take a look at the DirectXInit in modDirectX, there will be some declarations of specific directX layers. copy one, change the source of it, and rename it.

After doing this, you need to create a sub, call it: bltCorpse or something. Make a the parameters like so:
Sub bltCorpse(ByVal X as Long, ByVal Y as Long)

Then go take a look at a simple directX blitting. Such as the emoticons.

Lastly, input your blitting within the gameloop, make a check with the NPC's status (dead or living) and blt away!

Good Luck,
  -Tiggilyboo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...