Search found 237 matches

by behind_you
Sat Jul 02, 2011 6:44 am
Forum: QuakeC Programming
Topic: Bullet Range?
Replies: 3
Views: 1367

Re: Bullet Range?

sniperz227 wrote:sorry i forgot to ask do you know what the armor code is called in kurok ?
armor code called? it's probably the same as normal quake. self.armorvalue is your armor. works kinda like health
by behind_you
Sat Jul 02, 2011 6:39 am
Forum: News & Announcements
Topic: Inside3D Forums Down Time
Replies: 35
Views: 46764

Re: antispamsterfs

gnounc wrote:can we also get a flag system on the new members page?
Or we could simply add a captcha when you register to prevent spambots from posting at all...
by behind_you
Sat Jul 02, 2011 6:30 am
Forum: QuakeC Programming
Topic: Snippet
Replies: 24
Views: 8669

You're welcome, thorn3001 . Just keep at it. It's tricky at first but you'll get it (I am a noob myself, infact)

toneddu2000 you might want to check this out.

This is a very useful code I have for you today. Whenever you want to print a very long string that would surpass the screen resolution ...
by behind_you
Thu Jun 30, 2011 6:32 am
Forum: QuakeC Programming
Topic: Snippet
Replies: 24
Views: 8669

Today I will show you how to centerprint one letter at a time instead of the entire thing at once. I thought about this while playing Half-Life. The text that prints in HL prints in this kind of style.

This is the code:


void() charprint =
{
local float howmany, blankcount;
local string text ...
by behind_you
Tue Jun 28, 2011 7:29 am
Forum: Modeling
Topic: SlasherOaf monster
Replies: 2
Views: 3135

Good stuff there.
by behind_you
Tue Jun 28, 2011 6:34 am
Forum: Programming Tutorials
Topic: pyramid design
Replies: 8
Views: 5039

Re: pyramid design

ashiffa wrote:i am an architecture student
Yes spambot, we all can dream.
by behind_you
Tue Jun 28, 2011 6:31 am
Forum: QuakeC Programming
Topic: Finding out 'what frame is the .mdl currently in?'
Replies: 5
Views: 1738

set a float equal to self.frame

It wont return the frame as $frame, but only as an integer, so you will probably have to figure out the integer value for every frame.
by behind_you
Tue Jun 28, 2011 6:27 am
Forum: QuakeC Programming
Topic: Snippet
Replies: 24
Views: 8669

This function reads and returns the specified line of text from the specified file. Note that the file you want to read must be located inside a folder (in your gamefolder) called 'data' (without quotes).

Here's the code:


string (string filename, float line) readtextline =
{
local float file ...
by behind_you
Mon Jun 27, 2011 6:31 am
Forum: QuakeC Programming
Topic: Snippet
Replies: 24
Views: 8669

Thank you, toneddu2000 for being the first person, besides me to reply to this topic!

Two more snippets :D

Today we will figure out whether any file you specify in qc exists or not. This is done by using the search functions which AFAIK, are supported in DP and probably FTE.

Here's the code ...
by behind_you
Sun Jun 26, 2011 8:21 am
Forum: QuakeC Programming
Topic: Snippet
Replies: 24
Views: 8669

Ok,

Let's say you have a number. You want to only get one digit from the number. The following function allows you to do this.

Note: If you are using vanilla QuakeC, you will need a qc file called mathlib.qc by FrikaC. Here it is

So, anywho here's the code (heavily commented for your learning ...
by behind_you
Sun Jun 26, 2011 6:57 am
Forum: QuakeC Programming
Topic: Animated Ammo Box
Replies: 2
Views: 1257

Re: Animated Ammo Box

Your code is a bit of a mess. I cleaned it up for you. It should work now (untested!)


void() Initgiveammo =
{
setmodel(self, "progs/ammobox-e.mdl");
sprint(other, "You load up on ammo\n");
other.ammo_snipershell = other.ammo_snipershell + 2;
other.ammo_pistolblts = other.ammo_pistolblts + 9 ...
by behind_you
Sun Jun 26, 2011 6:43 am
Forum: General Discussion
Topic: What version of OpenGL does your GFX card support?
Replies: 12
Views: 3766

Graphics card: Intel 845G 128mb

OpenGl Version: 1.5.0

........................... :(
by behind_you
Sat Jun 25, 2011 8:32 am
Forum: QuakeC Programming
Topic: hammer time!! (actually, noob time)
Replies: 7
Views: 2246

I have some more questions:

1- When drawing stuff on csqc, i noticed that it 'refreshes' everything every 0.1 seconds. How can I speed this up?

2- When I use 'while' anywhere, how fast does it loop?

3- I noticed that drawpic is a float. Why is that? Is there a way to figure out if the pic has ...
by behind_you
Sat Jun 25, 2011 7:04 am
Forum: QuakeC Programming
Topic: Snippet
Replies: 24
Views: 8669

This small addition allows the character to walk slower whenever a certain button is held.

This is all in PlayerPreThink in client.qc:


local float maxspeed;

maxspeed = cvar("sv_maxspeed");//find out your current speed

if (self.button3)//if you are holding down the button (change this to ...
by behind_you
Wed Jun 22, 2011 8:10 am
Forum: Quake Events
Topic: QExpo11 - Speedmodding Event Schedule
Replies: 3
Views: 14896

Wow it sounds really cool!

I can never speed mod. I take too long on the simplest of things!