Forum

Breakable boxes like in HL1

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Breakable boxes like in HL1

Postby JasonX » Sun Oct 10, 2010 11:53 pm

Has anyone done something similar? Maybe Quake-Life? Is it even possible?
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby andrewj » Mon Oct 11, 2010 1:24 am

Make a model of a crate for the explode_box, and you're half way there.

Change its QuakeC to spawn splinters and stop the chain-reaction explosions and you're done.
andrewj
 
Posts: 133
Joined: Mon Aug 30, 2010 3:29 pm
Location: Australia

Postby JasonX » Mon Oct 11, 2010 2:05 am

Splinters?
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby dreadlorde » Mon Oct 11, 2010 2:08 am

You probably want to check out Quoth 2's func_breakable.
Ken Thompson wrote:One of my most productive days was throwing away 1000 lines of code.

Get off my lawn!
User avatar
dreadlorde
 
Posts: 268
Joined: Tue Nov 24, 2009 2:20 am

Postby JasonX » Tue Oct 12, 2010 12:57 am

There's no source for Quoth 2. :(
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby leileilol » Tue Oct 12, 2010 3:24 am

It's fairly easy to code a func_breakable. As an example, Extras r4 has a breakable brush among others like ladders.

ANTI-SELFISHISM LICENSE WARNING: IT'S GPL v2
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby Baker » Tue Oct 12, 2010 4:56 am

leileilol wrote:It's fairly easy to code a func_breakable. As an example, Extras r4 has a breakable brush among others like ladders.


Are you sure? I don't think that is a feature of p0x extrasr4.

Quake-Life for certain has func_breakables:

http://quake-1.com/quakec-gallery/quake ... 2_2010.zip

leileilol wrote:ANTI-SELFISHISM LICENSE WARNING: IT'S GPL v2

Quoth has p0x extrasr4 func_ladders in it and it manages to be a closed source mod. :roll:
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby frag.machine » Tue Oct 12, 2010 12:09 pm

Baker wrote:
leileilol wrote:ANTI-SELFISHISM LICENSE WARNING: IT'S GPL v2

Quoth has p0x extrasr4 func_ladders in it and it manages to be a closed source mod. :roll:


That's a good point. And regardless if it uses or not R4 code, wasn't Quoth released AFTER id making all their QuakeC source code licensed under GPL ? Or are they protected by the previous license ?
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: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby ceriux » Tue Oct 12, 2010 1:23 pm

its easy just make an explode box spawn models in a random direction instead of an explosion.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby JasonX » Tue Oct 12, 2010 2:05 pm

frag.machine wrote:
Baker wrote:
leileilol wrote:ANTI-SELFISHISM LICENSE WARNING: IT'S GPL v2

Quoth has p0x extrasr4 func_ladders in it and it manages to be a closed source mod. :roll:


That's a good point. And regardless if it uses or not R4 code, wasn't Quoth released AFTER id making all their QuakeC source code licensed under GPL ? Or are they protected by the previous license ?


Having closed licenses in a community maintained alive by GPL notions is ridiculous. :(
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby JasonX » Tue Oct 12, 2010 2:06 pm

I'll probably check Quake-Life source for the func_breakable thing. Can anyone tell me which features in Quake-Life are FTEQW-specific?
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby andrewj » Tue Oct 12, 2010 5:45 pm

frag.machine wrote:wasn't Quoth released AFTER id making all their QuakeC source code licensed under GPL ? Or are they protected by the previous license ?

The re-release under GPL does not invalidate the previous license. They can continue to use it if they want. There are numerous DOOM ports which continue to use the original "educational use" license even after Carmack re-released the DOOM code under GPL.
andrewj
 
Posts: 133
Joined: Mon Aug 30, 2010 3:29 pm
Location: Australia


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest