Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 5 1 2 3 4 5
Blood Splatters #41416
02/23/05 15:24
02/23/05 15:24
Joined: Oct 2003
Posts: 2,194
Saturn
Metal_Thrasher Offline OP
Expert
Metal_Thrasher  Offline OP
Expert

Joined: Oct 2003
Posts: 2,194
Saturn
Okay, I wasn't gonig to release this at all; but I thought it would be nice and would help alota noobs and possibley some experts.
Anyway, I'll first show you my screen shots and then I'll give you the code.

The guy gets ownxored right in the face blood splatters onto the wall.

This guy's shot and bleeds on to the floor.

This guy's killed there's blood all over the wall.

this guy's getting all shot up.

A true scene of carnage

here comes the code.
(press quote to snatch it)
Code:
 

bmap blood = <blood1.tga>;

Function bloodburst_spec_fun()
{
my.alpha -=random(0 *time);
if(my.alpha < 0)
{
my.lifespan = 0;
}
}


Function bloodburstspezial()
{
my.bmap = blood;
my.vel_x = random( 11.270 ) - (11.270 /2);
my.vel_y = random( 11.270 ) - (11.270 /2);
my.vel_z = random( 11.270 );
my.size = random(3.150 );
my.move =1 ;
my.flare=on;
my.alpha = 50 ;
my.transparent = 1 ;
my.gravity =4.331 ;
my.streak =1 ;
my.bright =0 ;
my.function = bloodburst_spec_fun;
my.flare =1 ;
}


Function bloodburst()
{
while(1)
{
effect(bloodburstspezial,13 *time,my.x,nullvector);
wait(1 );
}
}


action bloodburst_action
{
my.invisible = on;
My.passable = on;
bloodburst();
}

string bloodspri = <blood2.tga>; // strings can be defined in "" or <>
entity* blood1;
entity* blood2;
function bloody
{
me=blood1;
}

function bloodiest
{

my.oriented=on;
my.overlay=on;

my.facing=off;

my.passable=on;
my.scale_x = random(0.33);
my.scale_y = random(0.33);

result = c_content(my.x);

vec_set(temp, my.x);
temp.z -= 3000;
trace_mode = ignore_me+ignore_sprites+ignore_you+ignore_models;
result = trace(my.x, temp);
vec_set(my.x, target); // set MY at target position
vec_to_angle(my.pan,normal);
my.roll=random(360);

}


function bloodiest2
{
vec_to_angle(my.pan,normal);
my.oriented=on;
my.overlay=on;
my.scale_x = random(0.33);
my.scale_y = random(0.33);
my.facing=off;
my.roll=random(360);
my.passable=on;
}



Now put the next part into the piece of code where the enemy is hit.
Code:
 

effect(bloodburstspezial,13,TARGET,nullvector);
ent_create (bloodspri, TARGET, bloodiest);
TRACE_MODE = IGNORE_ME + IGNORE_YOU + IGNORE_PASSABLE + IGNORE_MODELS + IGNORE_SPRITES + IGNORE_MAPS + ACTIVATE_SHOOT;

TRACE (gun_muzzle,gun_target);//this will have to be change to work for you

create(bloodspri, TARGET, bloodiest2);



Tell me what you think.
Suggestion and C&C accepted.

Last edited by DragonXdark; 02/23/05 15:33.

-Johnny Thrash
Re: Blood Splatters [Re: Metal_Thrasher] #41417
02/23/05 17:03
02/23/05 17:03
Joined: Aug 2003
Posts: 842
alabama
Drittz_Dourden Offline
User
Drittz_Dourden  Offline
User

Joined: Aug 2003
Posts: 842
alabama
very nice ill have to give it a try soon


daniel

Re: Blood Splatters [Re: Drittz_Dourden] #41418
02/24/05 05:49
02/24/05 05:49
Joined: Oct 2003
Posts: 2,194
Saturn
Metal_Thrasher Offline OP
Expert
Metal_Thrasher  Offline OP
Expert

Joined: Oct 2003
Posts: 2,194
Saturn
Quote:

very nice ill have to give it a try soon


daniel



cool, tell me what you think.
89 views and only one reply? Please tell me what you guys think, good or bad. It only can help both of us.


-Johnny Thrash
Re: Blood Splatters [Re: Metal_Thrasher] #41419
02/24/05 05:56
02/24/05 05:56
Joined: Nov 2004
Posts: 53
Wisconsin
Spartan_117 Offline
Junior Member
Spartan_117  Offline
Junior Member

Joined: Nov 2004
Posts: 53
Wisconsin
i think its good but too much blood splatter when the guy is hit it shoud be alot less for realism but its a good start.

Re: Blood Splatters [Re: Spartan_117] #41420
02/24/05 06:00
02/24/05 06:00
Joined: Oct 2003
Posts: 2,194
Saturn
Metal_Thrasher Offline OP
Expert
Metal_Thrasher  Offline OP
Expert

Joined: Oct 2003
Posts: 2,194
Saturn
well, since I'm giving the script away you guys can play with those settings too. but I'll take note of that and fix for my next release.


-Johnny Thrash
Re: Blood Splatters [Re: Metal_Thrasher] #41421
02/24/05 06:01
02/24/05 06:01
Joined: Aug 2003
Posts: 842
alabama
Drittz_Dourden Offline
User
Drittz_Dourden  Offline
User

Joined: Aug 2003
Posts: 842
alabama
well i gave it a try and i gotta say i love it thanks man


Daniel

Re: Blood Splatters [Re: Drittz_Dourden] #41422
02/24/05 06:02
02/24/05 06:02
Joined: Oct 2003
Posts: 2,194
Saturn
Metal_Thrasher Offline OP
Expert
Metal_Thrasher  Offline OP
Expert

Joined: Oct 2003
Posts: 2,194
Saturn
thanks man, glad you like it


-Johnny Thrash
Re: Blood Splatters [Re: Metal_Thrasher] #41423
02/24/05 06:08
02/24/05 06:08
Joined: Sep 2004
Posts: 1,214
Austin, Texas
Josh_Arldt Offline
Senior Developer
Josh_Arldt  Offline
Senior Developer

Joined: Sep 2004
Posts: 1,214
Austin, Texas
Nice contribution.

@everyone it's rude to take the code without commenting on it.
Please post some replies.

Re: Blood Splatters [Re: Metal_Thrasher] #41424
02/24/05 22:29
02/24/05 22:29
Joined: Apr 2003
Posts: 46
rappo Offline
Newbie
rappo  Offline
Newbie

Joined: Apr 2003
Posts: 46
I am a newbie. How to use it with templates?

Re: Blood Splatters [Re: rappo] #41425
02/25/05 03:28
02/25/05 03:28
Joined: Oct 2003
Posts: 2,194
Saturn
Metal_Thrasher Offline OP
Expert
Metal_Thrasher  Offline OP
Expert

Joined: Oct 2003
Posts: 2,194
Saturn
The A5 or A6 templates? I don't how to implement it into the A6 templatges, but I can tell you how put it into the A5 templates.


-Johnny Thrash
Page 1 of 5 1 2 3 4 5

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1