Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,264 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zombie Code WDL zu Lite C #417650
02/15/13 00:32
02/15/13 00:32
Joined: Apr 2005
Posts: 653
Germany
D
Det Offline OP
User
Det  Offline OP
User
D

Joined: Apr 2005
Posts: 653
Germany
Hallo
Ich hätte noch einen WDL Code zu bieten der aber leider nur in Lite C umgeändert werden sollte damit er brauchbar wird. Für A7/8
Leider kann ich den Code nicht selber umändern. Zur belohnung kann den Code jeder benutzen der ihn brauchen kann.

P.S. Ich habe noch einige gute Codes in WDL die brauchbar wären für den einen oder anderen .

MFG.

Code :

//
/////////////////////////////////////////////////
#define zom_wait,99;
#define zom_attack,98;
#define zom_approach,97;
#define zom_die0,96;

#define body,skill30;
#define zom,0;
#define flesh,1;
#define metal,2;
#define _verts,skill36;

SOUND Zombie_spotted,<Dämon.WAV>;
SOUND Zombie_attack,<Dämon2.WAV>;

var p;
var p2;

function zom_wait();
function zom_approach();
function zom_attack();

function zom_init()
{
my.enable_shoot = on; //// zombie schiesst
my.enable_scan = on;
my.enable_detect = on;
}

function zom_event()
{
if(event_type == event_shoot && indicator == _GUNFIRE)
{
my._health -= 5;
}
if(my._health <= 0) { zom_die(); }
}

function zom_die()
{
my._state = zom_wait;
my._animdist = 0;
my.event = null;
my.enable_shoot = off;
my.enable_scan = off;
my.transparent = on;
my.bright = on;
my.alpha = 100;
while(my._animdist <= 100)
{
ent_frame("death",my._animdist);
my._animdist += 7 * time;
wait(1);
}
my.passable = on;
wait(20);
while(my.alpha > 0)
{
my.alpha -= time * 5;
my.z -= time * 0.5;
wait(1);
}
ent_remove(my);
}

action Zombie
{
wait(1);
zom_init();
my.skill30 = 100; //vertex # at wrist
my.skill31 = 176; //vertex # at finger
my._verts = 177; //# of verts in the model
my._health = 100; //starting health
my.event = zom_event;
my._state = zom_wait;
zom_wait();
}

function zom_wait()
{
my._state = zom_wait;
my._animdist = 0;
while(my._state == zom_wait)
{
if(my._health <= 0) { zom_die(); return;}
ent_cycle("stand",my._animdist);
my._animdist += 5 * time;
if(my._animdist >= 100) { my._animdist -= 100; }
force = 0;
actor_move();
if(vec_dist(player.x,my.x) <= 1000) {
zom_approach();}
wait(1);
}
}

function zom_approach()
{
my._state = zom_approach;
my._animdist = 0;
while(my._state == zom_approach && vec_dist(player.x,my.x) > 45)
{
if(my._health <= 0) { zom_die(); return;}
ent_cycle("run",my._animdist);
PLAY_ENTSOUND(ME,Zombie_spotted,50);
my._animdist += 5 * time;
if(my._animdist >= 100) { my._animdist -= 100; }
temp.x = player.x - my.x;
temp.y = player.y - my.y;
temp.z = player.z - my.z;
vec_to_angle(my_angle,temp);
force = 5;
actor_turn();
force = 3;
actor_move();
wait(1);
}
zom_attack();
}

function zom_attack()
{
my._state = zom_attack;
my._animdist = 0;
while(my._state == zom_attack && vec_dist(player.x,my.x) < 50)
{
my._animdist = 0;
while(my._animdist <= 100)
{
if(my._health <= 0) { zom_die(); return;}
ent_frame("attack",my._animdist);
my._animdist += 15 * time;
//
ent_vertex(p,my.skill30);
ent_vertex(p2,my.skill31);
trace_mode = IGNORE_ME + IGNORE_PASSABLE + ACTIVATE_SHOOT;
trace(p2,p);
if(YOU != NULL)
{
PLAY_ENTSOUND(ME,Zombie_attack,50);
your._health -= 1;
}
//
wait(1);
}
my._animdist = 0;
while(my._animdist <= 100)
{
if(my._health <= 0) { zom_die(); return;}
ent_frame("recoil",my._animdist);
my._animdist += 20 * time;
//
ent_vertex(p,my.skill30);
ent_vertex(p2,my.skill31);
trace_mode = IGNORE_ME + IGNORE_PASSABLE + ACTIVATE_SHOOT;
trace(p2,p);
if(YOU != NULL)
{
your._health -= 100;
}
//
wait(1);
}
wait(1);
}
zom_approach();
}

/////////////////////////////////////////////////
[spoiler][/spoiler]

Last edited by Det; 02/15/13 00:37.

Wissen ist macht.
Nichts wissen macht auch nichts.

A7.86
Re: Zombie Code WDL zu Lite C [Re: Det] #417652
02/15/13 00:41
02/15/13 00:41
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Warum versuchst Du dich nicht mal selber daran?


Always learn from history, to be sure you make the same mistakes again...
Re: Zombie Code WDL zu Lite C [Re: Uhrwerk] #417653
02/15/13 00:47
02/15/13 00:47
Joined: Apr 2005
Posts: 653
Germany
D
Det Offline OP
User
Det  Offline OP
User
D

Joined: Apr 2005
Posts: 653
Germany
Hab ich ja aber bei einigen zeilen kriege ich es noch nicht hin das er als Lite C Code

funktioniert sonst würde ich den Code nicht als WDL posten sondern als Lite C Code den andere dann auch benutzen können.

Muß noch viel lernen.

Sorry


Wissen ist macht.
Nichts wissen macht auch nichts.

A7.86
Re: Zombie Code WDL zu Lite C [Re: Det] #417667
02/15/13 11:40
02/15/13 11:40
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
At my place you find a working kill zombie workshop
in lite-c


Last edited by Realspawn; 02/15/13 11:42.

Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: Zombie Code WDL zu Lite C [Re: Det] #417678
02/15/13 13:33
02/15/13 13:33
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Originally Posted By: Det
Hab ich ja aber bei einigen zeilen kriege ich es noch nicht hin

Die meisten hast Du also schon. Poste die doch einfach mal und sag woran es noch hapert.


Always learn from history, to be sure you make the same mistakes again...
Re: Zombie Code WDL zu Lite C [Re: Uhrwerk] #417692
02/15/13 15:16
02/15/13 15:16
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
btw
Code Tags wären fürs Auge auch ganz ok


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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