Forum

A Series of Noob questions 1

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

A Series of Noob questions 1

Postby behind_you » Tue Feb 15, 2011 3:25 pm

hey! its me! ill be posting often, alright? Gots me a bunch of noob questions 2 b answered. here's today's 2

1. aiming

when the screen is dead center at an enemy, (aka crosshair targets him) i want something to happen (ie in english --> if aim at enemy, then sprite appear)?

2. ef light?

how do i define my own light. there's bright light, muzzle, how do i make my own?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Re: A Series of Noob questions 1

Postby Nahuel » Tue Feb 15, 2011 9:08 pm

1 - I do not understand the first question but look at this mod:
http://www.quaketerminus.com/mods/sfq10.zip
when the laser gun to an enemy it turns red, if not point to any entity is blue.
2.
You can create a very simple entity called "mylight"
with this code. Items.qc opened and wrote the final.
(You need a sprite null in the folder progs,) if you do not have it (the sprite is in many mods so it's easy to find, or you can create you) you can use the s_bubble.spr.



void () mylight =
{
precache_model ("progs/null.spr");
self.solid = SOLID_NOT;
self.movetype = MOVETYPE_NONE;
setmodel (self, "progs/null.spr");
self.effects = EF_DIMLIGHT;
};

Save and compile.
in self.effects you can put the other effects present in defs.qc
EF_BRIGHTFIELD
EF_MUZZLEFLASH
EF_BRIGHTLIGHT
EF_DIMLIGHT

if your mod is for Darkplace, you can find very good new effects dpextensions.qc
after you put the new item on the map and enjoy.[/u]
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Postby behind_you » Wed Feb 16, 2011 2:57 pm

ok thanks 4 helping. but you missed my point for the second one. im talking about adding your own ef or editing an ef. efdimlight for proquake looks light light that a fire would emit. i wanna make my own light, own intensity, own color, etc.
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby ceriux » Wed Feb 16, 2011 5:18 pm

i believe you would have to edit the engine to do that. if you were using darkplaces, you could just use half-life bsp and use an existing light entity.

um, proquake *might* support the use of .lit files or something o.O
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Nahuel » Wed Feb 16, 2011 5:21 pm

behind_you wrote:ok thanks 4 helping. but you missed my point for the second one. im talking about adding your own ef or editing an ef. efdimlight for proquake looks light light that a fire would emit. i wanna make my own light, own intensity, own color, etc.

you are in the wrong forum and i am wrong
:oops: :oops:
go to the "engine programing"


:wink:
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest