Forum

more stuff :/

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

more stuff :/

Postby MeTcHsteekle » Sat Jul 26, 2008 3:21 am

ok i kinda fixed the knight thing y giving him a missile attack, but now he does not attack right, he stands far away and swings and i ran in to the same thing with fish, but thats not what ima ask about, the fish : P

ok ok ok,....dsc, how can i add in a explotion effect like dp has whith the explotion shell when stuff explodes, is it a model or is that a particle effect that only dp has?

and if the 2 is true how can i make a similar vertion in a non dp thinggy, like use a model

and.....uh.... .. ..wait ill remeber...

oh!
how can i make it so with the nailguns it will throw a strip after every 100 nails are firred, like using a throw gib function i guess but how to make it 100, because whit nailguns nails arnt gonna have indivitual shells, they come in rows, or fleshetts or wever it call,

this is wut happens when u play quake for less than year and one day start to mod, u ask questions at midknight on stuff, i bet this makes no sence? doesit?
:D :( :o :oops: :? :?:
and u spell things wrong

also how do i make feinds jump to the players height? ive searched all the qc sites i know and cant find ansure :X
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Postby redrum » Sun Jul 27, 2008 4:41 am

In demon.qc you'll see some code that looks like this:
Code: Select all
   self.touch = Demon_JumpTouch;
   makevectors (self.angles);
   self.origin_z = self.origin_z + 1;
   self.velocity = v_forward * 600 + '0 0 250';
   if (self.flags & FL_ONGROUND)
      self.flags = self.flags - FL_ONGROUND;

You can change the height of the jump by substituting the 250 with a lower number (not exactly sure the exact number to achieve your goal).
Also, you can change the distance of the jump by changing the 600 to another value. :D
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby MeTcHsteekle » Sun Jul 27, 2008 10:58 pm

thanks ill have to keep messing with it tho cos i got him waaay over shooting
but how do i make it so he jumps when he cant cut u .. like in e1m2 wheere u can just stand on the ledge and shoot him cos he cant figure out to jump
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Postby redrum » Mon Jul 28, 2008 12:12 am

In Demon_JumpTouch() you'll see this bit of code:
Code: Select all
   if (other.takedamage)
   {
      if ( vlen(self.velocity) > 400 )
      {
         ldmg = 40 + 5*random();
         T_Damage (other, self, self, ldmg);   
      }
   }

This is where the damage gets dealt from the demons jump attack.
If you wanted to change the damage to zero do this:
Code: Select all
   if (other.takedamage)
   {
      if ( vlen(self.velocity) > 400 )
      {
         ldmg = 0;
         T_Damage (other, self, self, ldmg);   
      }
   }
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby MeTcHsteekle » Mon Jul 28, 2008 3:36 am

oh, i might have word that weird, i meant like;

on the map e1m2 at end when feind is released
you can go through the teleport and stand on the top thing it sends you too
and then the feind, not knowing any better, will run up to the wall and try to get u, but it wont jump just run,
so how can i fix this? i truly have no idea for my mind is melting as i type /;0~~/
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Postby Dr. Shadowborg » Mon Jul 28, 2008 3:54 pm

MeTcHsteekle wrote:oh, i might have word that weird, i meant like;

on the map e1m2 at end when feind is released
you can go through the teleport and stand on the top thing it sends you too
and then the feind, not knowing any better, will run up to the wall and try to get u, but it wont jump just run,
so how can i fix this? i truly have no idea for my mind is melting as i type /;0~~/


I meant to post on this yesterday but forgot.

There are two ways of doing this, but the better one I've seen is the one from cranked.

http://www.gamers.org/pub/games/idgames2/quakec/monsters/cranked.zip

also see:
http://www.gamers.org/pub/games/idgames2/quakec/monsters/lob_ai.txt

Hope these help. :wink:
User avatar
Dr. Shadowborg
InsideQC Staff
 
Posts: 1110
Joined: Sat Oct 16, 2004 3:34 pm

Postby MeTcHsteekle » Mon Jul 28, 2008 5:25 pm

oh thanks, i had a cranked but i dont think it had scource code, so i decompiled it and i got a pile of useless etc.. this works well, and with the other stuff provied by mr. screaming i might make a "young feind" some day
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Postby MeTcHsteekle » Tue Jul 29, 2008 4:06 pm

ok, now that i have feind better i ade him a mobot, but, i kinda messed it up again :(

yet another console crash bug :/

You got the nails
You got the Super Nailgun
a feind joins the funn

EDICT 53:
modelindex 38.0
absmin ' 79.0 -449.0 -62.3'
absmax '145.0 -383.0 27.7'
movetype 4.0
solid 3.0
origin '112.0 -416.0 -37.3'
velocity ' 0.0 0.0 -239.6'
classname monster_demon
model progs/demon.mdl
mins '-32.0 -32.0 -24.0'
maxs ' 32.0 32.0 64.0'
size ' 64.0 64.0 88.0'
health 300.0
takedamage 2.0
view_ofs ' 0.0 0.0 22.0'
fixangle 1.0
flags 32.0
waterlevel -1.0
watertype -1.0
yaw_speed 120.0

===========================
Host_Error: PR_ExecuteProgram: NULL function
===========================

]condump
it looks fimilar, but i dont know exactly whats wrong, it worked for ogres and shamblers :o

ok i have fixed it now, i had left the animations to say self instead of hellhound blah i gotta stop modding at 1:00 o click in morning
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest