Author |
Message |
Born4battle
DieHard SS


Joined: 24 Mar 2006
Last Visit: 08 Aug 2017
Topics: 37
Posts: 388
Location: Cherry Chocolate Reign!!!

|
Posted: Mon Mar 03, 2008 1:18 pm
Subject: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

 
|
|
Adam never completed it, therefore it doesn't work. You are doing nothing wrong, as there is nothing determined "wrong" yet, since there is no "right" to compare it to. |
_________________
"War is a conflict that does not determine who is right, but who is left."
|
|
 |
AlumiuN
DieHard Wolfer

Joined: 29 Nov 2007
Last Visit: 12:47 ago.
Topics: 38
Posts: 2536
Location: Christchurch, New Zealand

|
Posted: Mon Mar 03, 2008 1:26 pm
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
 |
|
|
 |
Adam Biser
Utility Developer


Joined: 06 Jun 2003
Last Visit: 06 Feb 2019
Topics: 46
Posts: 2318
Location: USA

|
Posted: Tue Mar 04, 2008 6:23 am
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
I thought he was talking about Dugtrio's blood splats (that's what this thread is about), which, I think is complete and works.
The other tutorial (the one by me) was, as stated, complete as far as I cared to take it and does work as-is to the degree shown in the screenshots. |
_________________ Orb of Dilaaria now has a Facebook page
Star Wars: Bloodlines now has a Facebook page
|
|
 |
thellt
Bring 'em On

Joined: 21 Jan 2008
Last Visit: 12 May 2009
Topics: 11
Posts: 85
Location: bloodgulch

|
Posted: Tue Mar 04, 2008 2:07 pm
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
i am trying to say how do you (after the splat flies in air) when the guard is shot but not died, leave a pool of blood behind... not just flying and disapearing. (if any one understands my retarded english plz help) |
_________________ }{even or }{ellt?
look for helt3d
|
|
 |
AlumiuN
DieHard Wolfer

Joined: 29 Nov 2007
Last Visit: 12:47 ago.
Topics: 38
Posts: 2536
Location: Christchurch, New Zealand

|
Posted: Tue Mar 04, 2008 4:22 pm
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
Ahh, you want to leave a pool of blood behind. I haven't taken a look at Adam's tutorial, but if you have a blood pool sprite, I think you can just use a SpawnStatic command. |
|
|
 |
Dean
Moderator

Joined: 10 Jan 2006
Last Visit: 07 Feb 2019
Topics: 54
Posts: 2214
Location: Australia

|
Posted: Wed Mar 05, 2008 1:52 pm
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
There was a mod that had this in it, it might have even been one of the earlier MMC competitions. The blood didn't as much splatter but it did create a blood pool on the floor when you shot and injured an enemy, it was set to randomly happen when you were playing but unfortunately I'm not sure how it was done in the coding side of things. |
_________________ ... Still alive
|
|
 |
Andy_Nonymous
Moderator


Joined: 02 Apr 2003
Last Visit: 17 Feb 2015
Topics: 99
Posts: 589
Location: New Jersey, USA

|
|
 |
AlumiuN
DieHard Wolfer

Joined: 29 Nov 2007
Last Visit: 12:47 ago.
Topics: 38
Posts: 2536
Location: Christchurch, New Zealand

|
Posted: Thu Mar 06, 2008 12:51 am
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
That mod, I believe, was Operation Panzerschriff. All it does is, when damaging an enemy, it checks if a Us_RndT number is above some value, say 220 or something similar, and if it is, it spawns a blood pool object on the enemy's tile. |
|
|
 |
thellt
Bring 'em On

Joined: 21 Jan 2008
Last Visit: 12 May 2009
Topics: 11
Posts: 85
Location: bloodgulch

|
Posted: Thu Mar 06, 2008 6:47 am
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
*is bad at code* where in the tut could we put the "spawn static" thingy?
@chris
(chris's reply is funny i printed it out and let my frends read it ) |
_________________ }{even or }{ellt?
look for helt3d
|
|
 |
AlumiuN
DieHard Wolfer

Joined: 29 Nov 2007
Last Visit: 12:47 ago.
Topics: 38
Posts: 2536
Location: Christchurch, New Zealand

|
|
 |
thellt
Bring 'em On

Joined: 21 Jan 2008
Last Visit: 12 May 2009
Topics: 11
Posts: 85
Location: bloodgulch

|
Posted: Fri Mar 07, 2008 6:51 am
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
turns out that if you leave the splat there after a while of shooting the game crashes... |
_________________ }{even or }{ellt?
look for helt3d
|
|
 |
AlumiuN
DieHard Wolfer

Joined: 29 Nov 2007
Last Visit: 12:47 ago.
Topics: 38
Posts: 2536
Location: Christchurch, New Zealand

|
Posted: Fri Mar 07, 2008 2:28 pm
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
Yeah, that'll be because it generates too many static objects. To fix that, go to the SpawnStatic function in WL_ACT1 and change the very last line ("Quit(etc. etc.)") into "return;". This will simply make the game not spawn any more objects. The other way of fixing this is to make another object in WL_ACT1 using the same sprite but as an actual different object and spawning that. Then, in WL_DEF.H, put "#define BLOODSPLAT" and then the number of the object. Then put in something that removes the first blood splat and replaces it with the object being placed.  |
|
|
 |
thellt
Bring 'em On

Joined: 21 Jan 2008
Last Visit: 12 May 2009
Topics: 11
Posts: 85
Location: bloodgulch

|
Posted: Fri Mar 07, 2008 8:18 pm
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
do u mean that the quit etc etc will then stop the game or will it continue like normal? i also had something else to ask but i cant remember at the moment... i am in a lock in... the time is 9:16... yawn........ zzzzzz... |
_________________ }{even or }{ellt?
look for helt3d
|
|
 |
AlumiuN
DieHard Wolfer

Joined: 29 Nov 2007
Last Visit: 12:47 ago.
Topics: 38
Posts: 2536
Location: Christchurch, New Zealand

|
Posted: Sat Mar 08, 2008 7:53 pm
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
Actually, on second thought, putting that return there makes more problems by causing it to spawn objects beyond the bounds of the table... not good.  |
|
|
 |
thellt
Bring 'em On

Joined: 21 Jan 2008
Last Visit: 12 May 2009
Topics: 11
Posts: 85
Location: bloodgulch

|
Posted: Mon Mar 10, 2008 10:44 am
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

  
|
|
all i did was the quit etc etc thingy and changed the
statetype s_splat1 = {false,SPR_SPLAT1,12,NULL,NULL,&s_splat2};
statetype s_splat2 = {false,SPR_SPLAT2,12,NULL,NULL,&s_splat3};
statetype s_splat3 = {false,SPR_SPLAT3,12,NULL,NULL,NULL}; routiene
into
statetype s_splat1 = {false,SPR_SPLAT1,12,NULL,NULL,&s_splat2};
statetype s_splat2 = {false,SPR_SPLAT2,12,NULL,NULL,&s_splat3};
statetype s_splat3 = {false,SPR_SPLAT3,12,NULL,NULL,&s_splat3}; |
_________________ }{even or }{ellt?
look for helt3d
|
|
 |
AlumiuN
DieHard Wolfer

Joined: 29 Nov 2007
Last Visit: 12:47 ago.
Topics: 38
Posts: 2536
Location: Christchurch, New Zealand

|
Posted: Tue Mar 11, 2008 12:02 am
Subject: Re: [Code] Blood Splatz Tutorial - Blood Splatters
[ IP : Logged ]
|

 
|
|
Oh, I see... this uses actors. Whoops. Go to the function GetNewActor and change the Quit line there to a "return;". This will simply stop spawning splats rather than crashing. It'll also fix problems with projectile weapons (if you have any) crashing the game. |
|
|
 |
|