2 registered members (AndrewAMD, Quad),
843
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: What are you working on?
[Re: sivan]
#433486
11/30/13 12:09
11/30/13 12:09
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
looks great! is there any chance to get a code example? ( I tried this before but it didn't work at all )
POTATO-MAN saves the day! - Random
|
|
|
Re: What are you working on?
[Re: Kartoffel]
#433490
11/30/13 13:18
11/30/13 13:18
|
Joined: Aug 2002
Posts: 3,258 Mainz
oliver2s
Expert
|
Expert
Joined: Aug 2002
Posts: 3,258
Mainz
|
Sure, here's the code
VECTOR normal1,normal2,normal_new;
CONTACT* c1=ent_getvertex(ent1,NULL,vertexID1);
vec_set(normal1,vector(c1.nx,c1.ny,c1.nz));
CONTACT* c2=ent_getvertex(ent2,NULL,vertexID2);
vec_set(normal2,vector(c2.nx,c2.ny,c2.nz));
vec_lerp(normal_new,normal1,normal2,0.5);
vec_normalize(normal_new,1);
CONTACT* c1=ent_getvertex(ent1,NULL,vertexID1);
c1.v.nx=normal_new.x;
c1.v.ny=normal_new.z;
c1.v.nz=normal_new.y;
ent_setvertex(ent1,c1,vertexID1);
CONTACT* c2=ent_getvertex(ent2,NULL,vertexID2);
c2.v.nx=normal_new.x;
c2.v.ny=normal_new.z;
c2.v.nz=normal_new.y;
ent_setvertex(ent2,c2,vertexID2);
|
|
|
Re: What are you working on?
[Re: oliver2s]
#433493
11/30/13 13:37
11/30/13 13:37
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
thanks! ---- what I'm working on: I thought about creating a simple multiplayer fps (like ut or quake) when I have more time. ...the hardest thing is going to be the multiplayer, i guess. I've never written any mp-games/applications before
POTATO-MAN saves the day! - Random
|
|
|
Re: What are you working on?
[Re: Kartoffel]
#433497
11/30/13 14:54
11/30/13 14:54
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Why dont you help me instead? I've made all the basics^^ A working FPS with nice movement (multiplayer for sure). But the movement is like BF/CoD.
Last edited by Ch40zzC0d3r; 11/30/13 14:54.
|
|
|
Re: What are you working on?
[Re: Ch40zzC0d3r]
#433498
11/30/13 15:00
11/30/13 15:00
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
well, I thought about something less realistic ...also it would be a good practise but I'm sure, movement and multiplayer will be my two main problems ^^
POTATO-MAN saves the day! - Random
|
|
|
Re: What are you working on?
[Re: Ch40zzC0d3r]
#433502
11/30/13 16:00
11/30/13 16:00
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
may I ask for some information regarding playerscripts and multiplayer-systems? I've never worked with multiplayer applications and I've never written a decent playerscript...
POTATO-MAN saves the day! - Random
|
|
|
|