|
3 registered members (EvanTJ, Quad, AndrewAMD),
4,715
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: New guy needs help please :)
[Re: Cowabanga]
#262694
04/25/09 08:50
04/25/09 08:50
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
include the default.c ingame press f11 2 times en look to the sizes of the boundingbox i geus they are into each other
the jumpng part wont work 100% but for starting this is perfect
mabyt thy ths to
c_setminmax(my); set(my,POLYGON); whule(my!= NULL)//if you dont use this, you will later get many crashes which you can figure out { ...
"empty"
|
|
|
Re: New guy needs help please :)
[Re: Cowabanga]
#262700
04/25/09 09:26
04/25/09 09:26
|
Joined: May 2008
Posts: 331 Lithuania, Vilnius
Jaxas
Senior Member
|
Senior Member
Joined: May 2008
Posts: 331
Lithuania, Vilnius
|
JakeBilbe, first of all start from the Lite-C workshops, there's all basics what you need  and second, for player movement it's better way to use c_move function 
The smaller the bug, the harder it is to kill. _________________________________________ Forklift DEMO (3dgs)
|
|
|
Re: New guy needs help please :)
[Re: Jaxas]
#262765
04/25/09 19:52
04/25/09 19:52
|
Joined: Apr 2009
Posts: 81
JakeBilbe
OP
Junior Member
|
OP
Junior Member
Joined: Apr 2009
Posts: 81
|
I have done the workshops, but when ever I press any keys that are assigned to move the player entity he just sits there. I changed the camera location and angle so I have a decent look at him and he is not touching the ground also his box thing isn't near the wire frame. And flits thanks for the code I stuck it in but still not working  . The model moved about when he was inserted into a .wmb file but the map I am using is a kind of remake of the earth ball map so its a .hmp file and I cant insert objects into it. Here I compressed the entire folder including the script and files needed to compile a test so if anyone would be so kind to check it out for me, as long as I can get him to move about I can carry on from there thanks. Download Here
Last edited by JakeBilbe; 04/25/09 21:12.
|
|
|
Re: New guy needs help please :)
[Re: JakeBilbe]
#262788
04/25/09 21:42
04/25/09 21:42
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Not bad so far, but your problem boils down to one line of code at fault. But it does contain multiple faults... ENTITY* MODEL = ent_create("character.mdl",vector(25,55,45),NULL); Youve already defined MODEL as a global entity pointer, so you can drop the "ENTITY*" from this line.
That takes us down to MODEL = ent_create("character.mdl",vector(25,55,45),NULL); This is OK, but youve forgotten to get the model run the main_player action.
That now takes us down to MODEL = ent_create("character.mdl",vector(25,55,45),main_player); This is almost working, but using the source code in your link, the compile will fail. Thats because the main_player action is coded AFTER the main in the source file, so the compiler doesnt know about the existance of the main_player action when it tries to compile the ent_create line. Just move the whole main_player action to be above main and it will fix this fault.
And finally, your main_player action is setting the MODEL pointer with the MODEL = me; line, so you dont need to do it at the ent_create line as well. But this is just a tidying thing. Not an actual fault. Im just trying to save you from doing the same thing twice.
So that brings the old ent_create line down to be just ent_create("character.mdl",vector(25,55,45),main_player); (and moving the main_player action) and it should now work.
PS I would choose a name other than "MODEL" for your player entity, as it MAY be a reserved word.
PPS Welcome aboard.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: New guy needs help please :)
[Re: EvilSOB]
#262794
04/25/09 22:00
04/25/09 22:00
|
Joined: Apr 2009
Posts: 81
JakeBilbe
OP
Junior Member
|
OP
Junior Member
Joined: Apr 2009
Posts: 81
|
Thanks bud you helped it now works :D, now I just gotta figure out where and how to put the animations in for walking lol thanks alot.
Last edited by JakeBilbe; 04/25/09 22:02.
|
|
|
Re: New guy needs help please :)
[Re: JakeBilbe]
#262796
04/25/09 22:08
04/25/09 22:08
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Use the "ent_animate" function (see manual), and place it inside the "while" loop of your player action. Just remember to only increment the animation-percent when the player model is actually moving.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
|