3 registered members (Ayumi, Akow, monk12),
1,413
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: War Cloud
[Re: 3run]
#327644
06/07/10 18:03
06/07/10 18:03
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Look what I've done to your script, it took me about 2 min to do, it is well readable now. That's not the best way to hide script believe me.
#include <acknex.h>
#include <default.c>
PANEL* pSplash=
{
bmap="logo_800.jpg";
}
TEXT* tHelp=
{
pos_x=10;
pos_y=10;
font="Arial#24bi";
flags=SHADOW;
string("Press [Space] to kick the ball!");
}
ENTITY* eBall;
SOUND* sPong = "tap.wav";
VECTOR vSpeed,vAngularSpeed,vForce,vMove;
function Plop()
{
ent_playsound(eBall,sPong,100);
}
function Kick()
{
VECTOR vKick;
vKick.x=150;
vKick.y=0;
vKick.z=75;
vec_rotate(vKick,camera.pan);
phent_addvelcentral(eBall,vKick);
Plop();
}
function main()
{
video_mode=7;
shadow_stencil=3;
d3d_antialias=4;
sound_vol=100;
set(pSplash,SHOW);
wait(3);
level_load("small.hmp");
ENTITY* sky=ent_createlayer("skycube+6.dds",SKY|CUBE|SHOW,0);
sky.z = 30;
camera.z=30;
eBall=ent_create("earth.mdl",vector(0,0,100),NULL);
set(eBall,SHADOW);
eBall.material = mat_metal;
phent_settype(eBall,PH_RIGID,PH_SPHERE);
phent_setmass(eBall,1,PH_SPHERE);
phent_setfriction(eBall,90);
phent_setelasticity(eBall,75,100);
phent_setdamping(eBall,30,5);
phent_addvelcentral(eBall,vector(10,10,0));
ph_setgravity(vector(0,0,-500));
eBall.event = Plop;
eBall.emask|=ENABLE_FRICTION;
pan_remove(pSplash);
set(tHelp,SHOW);
on_space = Kick;Plop();
while (1)
{
vForce.x=-5*(key_force.x+mouse_force.x);
vForce.y=5*(key_force.y+mouse_force.y);
vForce.z=0;vec_accelerate(vMove,vAngularSpeed,vForce,0.8);
vec_add(camera.pan,vMove);
vForce.x=6*(key_w-key_s);
vForce.y = 6*(key_a-key_d);
vForce.z=6*(key_home- key_end);
vec_accelerate(vMove,vSpeed,vForce,0.5);
vec_rotate(vMove,camera.pan);
vec_add(camera.x,vMove);wait(1);
}
}
|
|
|
Re: War Cloud
[Re: darkinferno]
#327645
06/07/10 18:04
06/07/10 18:04
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
@darkinferno, in free version it's not compiled, it's just the acknex exe that copiles the script when it's started.
@3run,you can still buy the extra version that can compile your scripts(there fore they are hidden).
also you can use lite-c to hide your models, with free version.
Last edited by Quadraxas; 06/07/10 18:06.
3333333333
|
|
|
Re: War Cloud
[Re: Quad]
#327647
06/07/10 18:06
06/07/10 18:06
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
@darkinferno, thank you bro, I'll upload now version compiled with commercial version of my friend. @Quadraxas, so what is the free version on the downloads page? If it's not EXTRA, what is it?!
Last edited by 3run; 06/07/10 18:09. Reason: so mistakes
|
|
|
Re: War Cloud
[Re: Quad]
#327651
06/07/10 18:18
06/07/10 18:18
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
That is not free EXTRA that's an old free LITE-C version man Extra is free now dude. And it compiles to .EXE too
Last edited by 3run; 06/07/10 18:19.
|
|
|
Re: War Cloud
[Re: 3run]
#327652
06/07/10 18:19
06/07/10 18:19
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
no that is the current valid list, try it for yourself free version do not support plugins.
3333333333
|
|
|
Re: War Cloud
[Re: 3run]
#327657
06/07/10 18:38
06/07/10 18:38
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
Newton is not a plugin, as i said you can write a plugin to work with free version, but normal plugins wont work.
Newton is not a plugin it's not compiled with the plugin SDK, it's just a C DLL.
You can use C DLLs directly from lite-c, you just need the header.
3333333333
|
|
|
|