Inside3D!
     

func_pushable in Quake-C

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
catalyst



Joined: 17 Feb 2009
Posts: 26

PostPosted: Wed Feb 18, 2009 10:06 pm    Post subject: func_pushable in Quake-C Reply with quote

hi again,

i become more and more addicted to the forums...
i want to make pushable objects for my mod. i copied the button's functions to plats.qc and am trying to modify them to make a pushable object. i'm stuck with the SUB_CalcMove function at the moment. What should I pass it as the third argument? For the button it was button_wait but I dont need my pushable to wait, do I?
Back to top
View user's profile Send private message
Chip



Joined: 21 Jan 2009
Posts: 314
Location: Romania

PostPosted: Thu Feb 19, 2009 11:18 am    Post subject: Libraries Reply with quote

I just read your post and another one with some rope requirements.

So, I was wondering, could it be possible to create a library of widely used functions, which could then be incorporated into any mod. Something like library.qc which should contain "callable" (=which can be called Wink) functions.

It could be similar to dpextensions.qc, and keep it frequently updated. After adding something like 100 functions to it, I'm sure it would be pretty useful, and Quake modding will come back to life.
_________________
My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake
Back to top
View user's profile Send private message Visit poster's website
Error
Inside3D Staff


Joined: 05 Nov 2004
Posts: 558
Location: VA, USA

PostPosted: Thu Feb 19, 2009 11:24 am    Post subject: Reply with quote

there have been many things like that.

most people don't release their subs to others, but some do.
_________________
Inside3D : Knowledge Is Power
Darkplaces Documentation Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Thu Feb 19, 2009 4:32 pm    Post subject: Reply with quote

Both of these cases are doable with Twig, well the rope isn't externally supported yet but internally it is.

Problem is Twig is DP specific (theoretically also FTEQW), and often these sorts of things require a lot of external coding to work properly, if the lib is to be modular and clean, meaning you'll be doing a bunch of the work yourself anyway. There can be example code, but example code is rarely very feature-complete, it might not do all the things you want to do, or work in the situations you want it to, and so forth. All things require work. It's like, when adding a physics lib to an engine, you might imagine that you can instantly make cool car games because of this. The truth is that you'll be doing a lot of input and camera work, a lot of tweaking of physics parameters and objects, special case handling and general cursing. Libs basicly just give you a couple more tools, they will very rarely actually do anything for you.
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
Chip



Joined: 21 Jan 2009
Posts: 314
Location: Romania

PostPosted: Thu Feb 19, 2009 5:05 pm    Post subject: Well... Reply with quote

It would also require an updated set of QC files (and the compiled progs.dat) in order to work with the library.

It's a lot of work indeed. I will think of something and come back.
_________________
My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake
Back to top
View user's profile Send private message Visit poster's website
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Fri Feb 20, 2009 4:00 am    Post subject: Reply with quote

Half-Life didn't need Twig.
Back to top
View user's profile Send private message
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Fri Feb 20, 2009 7:00 am    Post subject: Reply with quote

Depends on how you look at it
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Fri Feb 20, 2009 2:44 pm    Post subject: Re: Well... Reply with quote

Chip wrote:
It would also require an updated set of QC files (and the compiled progs.dat) in order to work with the library.

I'm not entirely sure what you're getting at there when referring to needing a compiled progs.dat for a library of some kind. Also its not just a twig library.
An entity library that adds stuff like buzzsaws, pendulums, rotating doors, etc isn't so far fetched. For the most part it doesn't require many external interactions.
An entity library that adds monsters, however, generally needs to hook in to the existing code in order to give valid death messages, for instance.
Hooking the existing code isn't so far fetched, however - all functions are essentially just variables, and can be rerouted. But really its not worth it, best to supply the library's hooks in the form of a .patch of some kind really.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group