create/read external file.

Discuss programming in the QuakeC language.
Post Reply
endercraft4
Posts: 4
Joined: Wed May 15, 2013 2:24 am

create/read external file.

Post by endercraft4 »

can quake read an external file ("file/monsterstats")
i want to check if file exists and if not create it.
if the file does exist then it will read var from the file. (health, name)
then assign those stats to it's own.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: create/read external file.

Post by Spike »

research frik_file
endercraft4
Posts: 4
Joined: Wed May 15, 2013 2:24 am

Re: create/read external file.

Post by endercraft4 »

thanks.
doe anyone know how to set the player to alive after he died.
ive got the player respawning in singleplayer. but he just lay on the ground dead.
gnounc
Posts: 428
Joined: Mon Apr 06, 2009 6:26 am

Re: create/read external file.

Post by gnounc »

Looks like its just

Code: Select all

respawn()
be more specific about what you've done in your mod
and how you want to become no longer dead, and under what circumstances?
endercraft4
Posts: 4
Joined: Wed May 15, 2013 2:24 am

Re: create/read external file.

Post by endercraft4 »

my mod is based on bioshock.
here is the link.
http://www.moddb.com/games/bioquake
thanks. its working. now when the player dies he is respawned at the beginning of the map. but with half of the max health.
ill change it to the latest check point later.
gnounc
Posts: 428
Joined: Mon Apr 06, 2009 6:26 am

Re: create/read external file.

Post by gnounc »

why does your page say you're looking for a unity coder?
endercraft4
Posts: 4
Joined: Wed May 15, 2013 2:24 am

Re: create/read external file.

Post by endercraft4 »

The main version will be for quake. But I wanted to also make it in unity for pc.
I've been trying to learn unityscript ( like java) but it kinda difficult.
I'm coding the quake version, makeing the models, and most levels.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: create/read external file.

Post by leileilol »

endercraft4 wrote:my mod is based on bioshock.
*facepalm*

Some important advice: Cease & desist orders aren't worth the loss of a teenager's huge amount of creative time. You will get one and they are no myth.

Instead, be original. Don't make Bioshock and call it a different name (common ignorant "avoid trademark and its totally okay!" tactic)
i should not be here
Post Reply