Inside3D!
     

Railgun

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Madfox



Joined: 15 Jan 2005
Posts: 36
Location: Holland

PostPosted: Sun Sep 06, 2009 10:13 pm    Post subject: Railgun Reply with quote

Dr.Shadowborgh...

many thanks for your tutorial on QuakeSpleen2008!!!
I made a new Railgun and started the tutorial as you posted.
http://qexpo.tastyspleen.net/booth.php?id=131&page=323

To my surprise I received a Quake map with all I expected, except the Railgun changes into a Grenade Launcher.
The sprite comes through, I added my g-rail.mdl but for some reason it changes into a grenadelauncher every time I press 8?

Do you have an idea what could have gone wrong?
Back to top
View user's profile Send private message Visit poster's website
Dr. Shadowborg
Inside3D Staff


Joined: 16 Oct 2004
Posts: 726

PostPosted: Mon Sep 07, 2009 1:10 am    Post subject: Re: Railgun Reply with quote

Madfox wrote:
Dr.Shadowborgh...

many thanks for your tutorial on QuakeSpleen2008!!!
I made a new Railgun and started the tutorial as you posted.
http://qexpo.tastyspleen.net/booth.php?id=131&page=323

To my surprise I received a Quake map with all I expected, except the Railgun changes into a Grenade Launcher.
The sprite comes through, I added my g-rail.mdl but for some reason it changes into a grenadelauncher every time I press 8?

Do you have an idea what could have gone wrong?


That's because you need a v_rail.mdl too. (for the view model)

Code:

else if (self.weapon == IT_EXTRA_WEAPON)
{
self.currentammo = floor(self.ammo_cells / 5);
self.weaponmodel = "progs/v_rock.mdl";
self.weaponframe = 0;
self.items = self.items | IT_CELLS;
}


Just change the self.weaponmodel = "progs/v_rock.mdl"; to self.weaponmodel = "progs/whatever_your_new_view_model_is_named.mdl"; and you should be good to go. Wink
_________________
"Roboto suggests Plasma Bazooka."
Back to top
View user's profile Send private message
Madfox



Joined: 15 Jan 2005
Posts: 36
Location: Holland

PostPosted: Mon Sep 07, 2009 2:48 am    Post subject: Re: Railgun Reply with quote

That is fantastic!
Only queer point I'm ending now is when I make a map with the railgun it doesn't appear.
It is there, because I can grab it, but it doesn't seem to spawn.

http://members.home.nl/gimli/railgun.jpg
Back to top
View user's profile Send private message Visit poster's website
Dr. Shadowborg
Inside3D Staff


Joined: 16 Oct 2004
Posts: 726

PostPosted: Mon Sep 07, 2009 6:04 pm    Post subject: Re: Railgun Reply with quote

Madfox wrote:

Only queer point I'm ending now is when I make a map with the railgun it doesn't appear.
It is there, because I can grab it, but it doesn't seem to spawn.


That's because it needs to be positioned in the model file. Right now you can't see it because it's probably inside the brush.

Here's a repackage of what you PMed me earlier.
http://tlb.quakedev.com/files/unsupported/madfox-railgun.zip

Just use the g_rail05.mdl for your weapon pickup model, and the v_rail05.mdl for your view model when using the weapon. Wink (g_rail05.mdl as been adjusted so that it works properly, I also flipped the base and rail framegroups on the v_rail05.mdl so that it will look right in vanilla quake.)
_________________
"Roboto suggests Plasma Bazooka."
Back to top
View user's profile Send private message
Madfox



Joined: 15 Jan 2005
Posts: 36
Location: Holland

PostPosted: Mon Sep 07, 2009 10:46 pm    Post subject: Re: Railgun Reply with quote

Perfekt! I hope you like the model.
I only received a "SV_Modelindex: model progs/ v_rail.mdl was not precached.", but that was only a add at world.qc
Looks fine now, somewhat low without hub but clearly going.

Many Thanks!!!

Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group