[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/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 - DP .modelflags

DP .modelflags

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

DP .modelflags

Postby Cobalt » Fri Jun 01, 2012 2:05 am

Messing around with these, finally got them to work. Found that setting it to 1 for a model flag will give it an orange glow. Seems if the movetype is none, it will be an orange glow, but if its moving, it will be an orange trailer. I tried it with the wall torches for a new effect:




Looks decent but turns out if you move far away or change to an extreme angle the glow goes away. I guess this is normal because of the protocal or whatever. However the NO_MODELFLAG float does not seem to do anything at all when I set it....?
User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: DP .modelflags

Postby Spike » Fri Jun 01, 2012 2:16 am

.modelflags is really only there for consistancy I believe.
you'll have achieve greater versitility from using other features instead.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: DP .modelflags

Postby Seven » Fri Jun 01, 2012 3:22 pm

Hello Cobalt,

I am using a DP build from august 2011 (and the corresponding dpextensions.qc).
You are speaking about the extension DP_SV_MODELFLAGS_AS_EFFECTS, right ?

I use this extension quite often inside the "small mod compilation".
You can give or take away or replace every "hardcoded" flag of a model.
That is very handy for some situations.
One example:
In Rogue (mission pack 2), the multirocket-launcher spits out 4 rocket parts at once.
Each of these 4 models use the flag for rockets.
If you have a custom rocket trail effect via effectinfo.txt, you will most probably run into
a to intense looking trail (because it is quadtrippled).
So I removed the flag via EF_NOMODELFLAGS and gave the model a new trail
via DP_ENT_TRAILEFFECTNUM.

For your special idea (to give some entities a "new" look/visual), I recommend to make
use of the DP_ENT_TRAILEFFECTNUM extension.
You can then declare your new custom effect via effectinfo.txt.
You must know that you can give each entity 2 different effects:
A) if the entity does not move
B) if the entity moves
Example for this:
Burning/glowing debris model:
When the debris lies on the floor, you can give it a small fire-like effect
When the debris flies (example directly after explosion) you can give it a smoke trail.
(Shoot the exploding boxes in the "small mod compilation" to see the debris example.)

I am happy to give you some more details if you have questions.

Best wishes,
Seven

EDITED:
The reason why the "effect" turns out if you move far way is the cvar setting for decals/particles.
Increase the distance of the cvar (look into dpwiki to see which ones are important) and you will see it longer.
But this affects all particles of course. So expect a bigger fps impact if you have many particles in your mod/game.

EDITED 2:
I forgot that I made a small youtube clip about the burning debris chunks.
That shows the 2 different effects of the same model nicely. Please find it here:
http://www.youtube.com/watch?v=ZxWK7UBkWjc&feature=plcp
Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: DP .modelflags

Postby Cobalt » Sat Jun 02, 2012 6:15 pm

Hi Seven:

Yea, thats the DP_SV_MODELFLAGS_AS_EFFECTS float in my example. I had suspected what you said abut the movement of the entity effecting how the effect looks but was not sure. I tried setting the cvar r_drawparticles_drawdistance to double the original , but still, the effect goes away. Its not as much a distance factor but depends more on the angle you are viewing the effect at if its around a corner for example. Not sure if that was the cvar you were refering to?
User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: DP .modelflags

Postby Seven » Sun Jun 03, 2012 12:09 pm

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

Re: DP .modelflags

Postby Cobalt » Mon Jun 04, 2012 1:38 am

Hi Seven:


Thanks for that post, I tried your ideas and they look nice. for some reason, that extension was not in my copy of the extensions fiel, maybe I did not copy it entirely. I am combining the extensions file and the sv_playerphysics file into one qc file at the top of my mod. I did search more on this site and found the extension you posted it a while ago and others made comments on it. Also, Electro had a definition of the paramaters for effectinfo.txt which I was needing too so I got that off his site. Thank you.
User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA

Re: DP .modelflags

Postby Seven » Mon Jun 04, 2012 11:24 am

Hello Cobalt,

the extension DP_ENT_TRAILEFFECTNUM has been introduced into the dpextension.qc in june 2011.
Please be sure to use the dpextension.qc file that came with the DP build that you use for your mod.
On the other side, you must always consider that users, that play your mod, use an older DP build.
The mod will therefore NOT work for them (as DP does not know the extension).
It is always a bit tricky to decide how far you want to go back with the dpextensions that you use.

I recommend going back to the last "stable" DP release from 28th june 2011.
This build and newer will be most probably used by players.

Regarding the effectinfo.txt explanations.
There is this amazing dpwiki (created by Error).
Here is the link to the effextinfo.txt script description:
http://dpwiki.slipgateconstruct.com/ind ... _Reference

Every existing param (and more) is explained nicely there.
I do not know Electro´s page. Maybe you want to give a link to his descriptions ?
It is always good to have different sources.
Thank you.
Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: DP .modelflags

Postby Cobalt » Tue Jun 05, 2012 12:18 am

Hi Seven:

Im not sure where I got my extensions file from what build of DP....but putting in the extension manually seem to so far be working ok. That link to Electro's site is here:

http://bendarling.net/rts/dp_particles.txt

Yes, the June 2011 version is the one most people download from LH's site, however there are many builds happening all the time, and I no longer use that version anymore because after I got LH to check for the .items2 float which I need in my mod, I make sure I have a version > Nov 2011 to play my mod, and my server requires the same.

There is also a bug I found regarding a collision problem that appears on E1M4 and E1m1 that LH is aware of and is trying to fix. I suppose after he fixes that , he can up the latest stable release version.....
User avatar
Cobalt
 
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest