[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Please help me with my Qung Fu mod.

Please help me with my Qung Fu mod.

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Please help me with my Qung Fu mod.

Postby Phenom » Sat Jun 16, 2012 12:45 pm

I normally only post on QuakeOne.com since I'm mostly a player not a modder, anyway.

I have this Quake mod I'm working on called Qung Fu with a completely remade ranger model(except for the texture).

Currently there is run,jump,idle and punch animations though I am no good at QC.

I had someone help me out this far but they're very busy so I turned to the Inside3d gang for assistance.

The run animation is slightly off, I can't figure out how to fine tune the player.qc for either run or jump
animations. There is no actual animation tied to jumping yet but when the player jumps he is supposed to do a front flip.

I have my model's frames mimicking the original player.mdl except I use dummy frames for unused animations(all jump flip frames)
Image

Here is an in-game video demonstrating what I have so far.

YouTube Video Link
[ihttp://www.youtube.com/watch?v=v00IK7Gw4n0

Can someone help me with player animations? Thank you!
Best sig ever.
Phenom
 
Posts: 10
Joined: Wed Mar 12, 2008 7:47 pm
Location: Guthrie, OK

Re: Please help me with my Qung Fu mod.

Postby frag.machine » Sat Jun 16, 2012 4:31 pm

I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: Please help me with my Qung Fu mod.

Postby Phenom » Sat Jun 16, 2012 6:13 pm

thanks, however I just finished my first Inside3D tutorial "jump like a fiend" so i'm a QC noob!

i don't understand QC syntax fluently enough to start adding stuff.

whenever I jump the model should play

$frame jump jump1 jump2 jump3 jump4 jump5 jump6 jump7 jump8 jump9 jump10.

the player.qc is original except for the modifications found under the "Jump like a fiend" tutorial
and Ive remade the player.mdl.
Best sig ever.
Phenom
 
Posts: 10
Joined: Wed Mar 12, 2008 7:47 pm
Location: Guthrie, OK

Re: Please help me with my Qung Fu mod.

Postby Seven » Sat Jun 16, 2012 7:32 pm

Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Please help me with my Qung Fu mod.

Postby Cobalt » Mon Jun 18, 2012 5:02 pm

The front flip is not too hard to do really. First I would check for a V_forward value or a vlen(self.velocity) that matches running straight ahead at top speed. Do a quick calculation using the playerjump()'s maximum value for when the jump is pressed so that we know the value of z_origin when he is at his maximum height at the jump. Do another calculation so that we know the z_origin about half way between that point and his original z_origin before the jump. Set self.frame = 69....do the jump, then give him an avelocity_y positive value so that his moel tips forward at a speed you desire. Once his z_origin is at or near close to the origin point when he first jumped, remove the avelocity, set self.angles as they were before the jump. The frame ought to reset by itself to a walking or standing frame. I am experimenting a little myself with frame 69 as the jump frame in my mod, and have it so that it checks for self.flags & FL_JUMPRELEASED or if self.flags& FL_ONGROUND and !self.button2 then it sets the frame as #69 , making it look like he is really jumping. If you want to be precise, you also ought to resize the model when its frame 69 because its alot smaller than the hull max and min values the qc has it set to.
User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: Please help me with my Qung Fu mod.

Postby Phenom » Mon Jun 18, 2012 6:16 pm

I'm in over my head here :)

Thnks so far for all the information!

Qung Fu was originally going to be 100% completely 3D animated in Blender, however the community showed interest in an actual game/mod so since the project was at it's infancy and easily transferable I made the model "Quake 1 friendly".

I don't understand when you say "Do a quick calculation using the playerjump()'s maximum value for when the jump is pressed" I'm a real noob and only made it through getting my model walking and punching by spending 2 days playing with the first 50 lines of frame code in player.qc.

I don't know how to do anything fancy or anything really, the Qc guy who was going to help suddenly became very busy and suggested I find someone else to code for the project.

At this point I've setup a local multiplayer game and had 2 "Qung Fu" guys running around punching/killing each-other the animations and over all-ness of the project is still very blocky and unpolished, I was hoping I could get some talented QC coder to help me straighten things out.
Best sig ever.
Phenom
 
Posts: 10
Joined: Wed Mar 12, 2008 7:47 pm
Location: Guthrie, OK

Re: Please help me with my Qung Fu mod.

Postby frag.machine » Tue Jun 19, 2012 12:11 am

Vanilla Quake doesn't play specific animations for jumping, or swimming, or strafing, or backpedaling... Well, you got the idea. So it's not just a matter of find & replace animation frames; you have to code things from scratch. It's quite feasible, but not exactly a beginner task. But don't let this discourage you: we are here to help. :)
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: Please help me with my Qung Fu mod.

Postby Cobalt » Tue Jun 19, 2012 3:07 am

User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: Please help me with my Qung Fu mod.

Postby Seven » Tue Jun 19, 2012 11:11 am

Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Please help me with my Qung Fu mod.

Postby Cobalt » Tue Jun 19, 2012 5:28 pm

User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: Please help me with my Qung Fu mod.

Postby Phenom » Tue Jun 19, 2012 6:43 pm

Thanks so far everybody, I'm going to try and let all this information soak in over the next few days.

The ultimate goal is to have a player be able to run, sprint, super jump while sprinting(near top speed) and wall-jump where the player springs upward when they hit a wall and press jump again.

The idea is to add another basic button (Jump,shoot,*action*) which gives the player extra functions in the world like sprinting, special moves.

Also I'd like to include some basic runes maybe like power, focus, fire skin and speed.
The levels could be standard e1m1 maps or dm1 maps but I'm thinking levels
to be custom made to fit the play style of vertical leaping/fighting (ala fantasy kung fu films)
so levels maybe with twin towers with multiple levels for fighting with teleports leading to the next level up
with equipment and items at the top.

With one catch however. I'm trying to include realistic fall damage so players will have to
think before they leap since jumping to high or falling to far will result in severe injury or death.

I know this is a lot for a noobie to even think of coding but like I said earlier, It was supposed to be something else
in the beginning and just kind of manifested into an actual mod from the QuakeOne community.

So any beginner tips or easy explanations would be appreciated!

Thanks!
Best sig ever.
Phenom
 
Posts: 10
Joined: Wed Mar 12, 2008 7:47 pm
Location: Guthrie, OK

Re: Please help me with my Qung Fu mod.

Postby Phenom » Tue Jun 19, 2012 9:59 pm

Seven,

I've tried your guide to getting flips to work
however I get a compile error stating:

oldone.qc:283: error: Function player_flip was not defined.

I've went through your instructions 2 times now, am i missing something?

If it would help I offer you the current work to look at the location is
http://theendstudios.com/files/QungFu.rar

Just extract and run the go.bat to see the model ingame. The archive has
DP engine and a basic level for model testing. Use chase_active 1 to see
the player model BTW(Player model is default Q1 in this archive).

The new playerX.mdl is also included in this development pack.

Thanks!
Best sig ever.
Phenom
 
Posts: 10
Joined: Wed Mar 12, 2008 7:47 pm
Location: Guthrie, OK

Re: Please help me with my Qung Fu mod.

Postby Cobalt » Wed Jun 20, 2012 5:18 am

BTW I watched the utube video, could not tell a whole lot from it cause of the way it was made. What you may wana do is make a regular demo via recorddemo-blah, then play it back while the DP AVI capture is running. I have found this is better as you can do full screen, and gives a better overall utube experience.

That error you are seeing in compile is likely because player_flip is being called in oldone.qc and the actual player_flip function is located in a file to be compiled lower in sequence (via progs.src) than oldone.qc ..... Seven said to put: void() player_flip1; in client.qc which means any file processed lower in sequence below client.qc will be able to use that function. What I do is place stuff like that in defs.qc or I make my own new qc file, IE: k-FUdefs.qc and compile it right below defs.qc to make it easier. If you put it in defs.qc you have to put it below the comment in the file that says END sys_globals, otherwise there will be compile problems.
User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: Please help me with my Qung Fu mod.

Postby Seven » Wed Jun 20, 2012 8:12 am

Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Please help me with my Qung Fu mod.

Postby Phenom » Thu Jun 21, 2012 1:04 am

Best sig ever.
Phenom
 
Posts: 10
Joined: Wed Mar 12, 2008 7:47 pm
Location: Guthrie, OK

Next

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest