joseuz:what did you do in the update? because im getting the same one. try renaming the file, then uploading it. accually, when you change the name of the file, could you include the .skp file aswell? The reason i want you to try and rename it, is because a lot of the time, when you upload files with the same name, te database gets confused, and just uses the file that you previously uploaded, instead of the new one, if that makes sense. thanks.
This forum is now archived!
- Welcome to the archive!
News:
The 3DRad community can be found at classdev.net.
- 3D Rad - Free 3D game maker - Forum >
- General Category >
- 3D Rad - Technical Discussion >
- FPS Help 2.1
Author Topic: FPS Help 2.1 (Read 4071 times)
secondry2
RobertooMolvadoo:Ok sorry , i just hadn't looked on youtube yet. Thanks for letting me use your zombies. I need to ask you a question, how did you do your animations for forest of the undead? because the switch object is terrible.
Yes, it is terrible... I used a script. I could write you a basic one.
One question for the animationscript, do you want the zombies to crawl out of the ground?
Alright, here is a script. Link it to all the objects in they order like it says in the script. Then you need to change some values in the beginning on the script. I haven't tested it, but it should work.
Code: [Select]
Vector3 PlayerLoc, ZombieLoc;
float Distance, Health;
int cAnimation, nAnimation;
///
int Walking = 1; //Animation set for walking.
int Attacking = 2; //Animation set for attacking.
int Dying = 3; //Aniamtion set for dying.
float Range = 1.0; //The attack range in meters.
///
void Main()
{
iObjectLocation(OBJ_0,ZombieLoc);
iObjectLocation(OBJ_22,PlayerLoc);
Distance = iVectorLength(PlayerLoc-ZombieLoc);
Health = IN_66;
if (Distance > Range && Health > 0) nAnimation = Walking;
if (Distance <= Range && Health > 0) nAnimation = Attacking;
if (Health <= 0) nAnimation = Dying;
if (cAnimation != nAnimation) {cAnimation = nAnimation; OUT_46 = nAnimation;} //If the current animation is not the same as the new animation, the current animation is set to the new one.
}
//OBJ_0 = Rigidboy (sphere from zombie character)
//OBJ_22 = Rigidboy (sphere from player character)/Cam1stperson (the player)
//OBJ_44 = Skinmesh (zombie)
//OBJ_66 = Counter (zombie health)
so you should make a zombie scene
http://www.youtube.com/watch?v=CCpV-OkROUE
http://www.youtube.com/watch?v=CCpV-OkROUE
secondry2
hi
RobertooMolvadoo:Could you please write a script for me (pretty please ) for the iron sights, cause i looked on youtube, and google, and i can't find any tutorials that i can follow, they don't make any sense. And for the script you just wrote me, the problem is, the player doesn't have a rigedbody, it is a cam1stperson. but if you could tell me how to give the cam1stperson a rigedbody, that would be sweet .
joseuz:do you mean like a trailer type thing? or cut scenes in the game? because im doing cut scenes in between the levels. btw, if you could make a city map, for the next level that would be great . (and make it so there is an airport, or a place to put a plane, because in the next level, its the same city map, except you are flying a plane, and mowing down zombies as you go .
RobertooMolvadoo:Could you please write a script for me (pretty please ) for the iron sights, cause i looked on youtube, and google, and i can't find any tutorials that i can follow, they don't make any sense. And for the script you just wrote me, the problem is, the player doesn't have a rigedbody, it is a cam1stperson. but if you could tell me how to give the cam1stperson a rigedbody, that would be sweet .
joseuz:do you mean like a trailer type thing? or cut scenes in the game? because im doing cut scenes in between the levels. btw, if you could make a city map, for the next level that would be great . (and make it so there is an airport, or a place to put a plane, because in the next level, its the same city map, except you are flying a plane, and mowing down zombies as you go .
RobertooMolvadoo:Could you please write a script for me (pretty please ) for the iron sights, cause i looked on youtube, and google, and i can't find any tutorials that i can follow, they don't make any sense.
I told you, the aiming system works with animations, not with script. Although a script changes the animations. If you want an aim down sight system as smooth as mine, you should make different animations.
hi
RobertooMolvadoo:And for the script you just wrote me, the problem is, the player doesn't have a rigedbody, it is a cam1stperson. but if you could tell me how to give the cam1stperson a rigedbody, that would be sweet .
Just ignore it says 'rigidbody'. It's only about the location, so just link it to the 1stpersoncam.
EDIT: I edited the script. Now it says cam1stperson.
secondry2
RobertooMolvadoo:Sorry, in the previous post, i must have misunderstood . I might not do sights in this version, but once this version is released (in the next few days), i will add things onto the project, then people can download the project and replace the old one (in the projects folder of the compiled game) with the downloaded one. btw, i will also make custom maps .
joseuz:So you mean like a spooky theme park? awesome! that would be sweet! I've already done all the maps, but on the menu i made, you can download custom maps, and play them on the same version, so ill use that map as like a survival map, because the others run in an order, as a campaign (with a story), so try and make it reasonably big, if its not too much trouble, double the size of then subway (thats only the preffered size, but you're the map maker, so you can make it as large, or small as you want.)
thanks
joseuz:So you mean like a spooky theme park? awesome! that would be sweet! I've already done all the maps, but on the menu i made, you can download custom maps, and play them on the same version, so ill use that map as like a survival map, because the others run in an order, as a campaign (with a story), so try and make it reasonably big, if its not too much trouble, double the size of then subway (thats only the preffered size, but you're the map maker, so you can make it as large, or small as you want.)
thanks
secondry2
joseuz: ok that would be awesome! .
i have a question, its really driving me nuts! http://www.3drad.com/forum/index.php?topic=8709.0 im having some trouble
i have a question, its really driving me nuts! http://www.3drad.com/forum/index.php?topic=8709.0 im having some trouble
secondry2
RobertooMolvadoo: Thanks for the script, but it didn't work. the zombie just kept playing the standing up animation
I'm very sorry, but it works like a charm.
You probably forgot to fill out the first section of the script. There are yellow lines around it. When I put yellow lines in my script, there is something a user can or must change to make it work properly in there project.
Note: keep in mind that this script only changes the animation. When the zombie drops dead, he will still keep moving. You still have to do this.
You probably forgot to fill out the first section of the script. There are yellow lines around it. When I put yellow lines in my script, there is something a user can or must change to make it work properly in there project.
Note: keep in mind that this script only changes the animation. When the zombie drops dead, he will still keep moving. You still have to do this.