Just a question.

User avatar
naruto5422
100+ Posts
100+ Posts
Posts: 163
Joined: Fri Jul 22, 2011 1:37 am
Location: United States, Arizona.

Just a question.

Post by naruto5422 »

Hello all! this is naruto and i wanted to ask a few questions and see if you agree to it.

Well since we have star wars characters on DR why not add Lightsabers you know or some lazerpistols lolz.
you choose your model as "Vader or Yoda" and as soon as you do that you get a lightsaber, but the lightsaber will be replaced with your crowbar.

idk if this made any sense, I didnt have enough time to think about it, just wanted to throw it out there before i forget :S lawlz.

anyways idk if ant or nick wants to try this but just asking.
User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: Just a question.

Post by shadowslayer »

actually that would be a cool thing, ive seen it done by even just a scriptor before. but to get the server to do it would require some good modding/plugins.
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
User avatar
naruto5422
100+ Posts
100+ Posts
Posts: 163
Joined: Fri Jul 22, 2011 1:37 am
Location: United States, Arizona.

Re: Just a question.

Post by naruto5422 »

shadowslayer wrote:actually that would be a cool thing, ive seen it done by even just a scriptor before. but to get the server to do it would require some good modding/plugins.

IKR! but really the idea came to me when i saw vader as rebel and yoda as combine fighting over a rocketlauncher.
I just want to see an epic battle of yoda and vader with lightsabers!! ahaha XD
jimmythecanadian
50+ Posts
50+ Posts
Posts: 69
Joined: Wed May 18, 2011 11:23 pm

Re: Just a question.

Post by jimmythecanadian »

I don't think it's possible to change a gun model on the server side so that the client sees themselves holding a lightsaber. The client can only do that on their end.
User avatar
Bob1337
Server Admin
Posts: 542
Joined: Fri Apr 09, 2010 10:02 pm

Re: Just a question.

Post by Bob1337 »

jimmythecanadian wrote:I don't think it's possible to change a gun model on the server side so that the client sees themselves holding a lightsaber. The client can only do that on their end.
I think you got that backwards... Lol.
Please dont ask me how to script.
Instead, click this.
Btw; I'm an asshole to idiots.
Bob1337 wrote:Explosive buddha killers. That shit is gay.
jimmythecanadian
50+ Posts
50+ Posts
Posts: 69
Joined: Wed May 18, 2011 11:23 pm

Re: Just a question.

Post by jimmythecanadian »

Ok I actually did some research instead of just guessing based on what makes sense, and you can change what is called a texture for your gun, not the model.

You could only change the surface of what the gun looks like then, not the actually shape.

And the client does have to do it on their end, the server cannot make the client see themselves holding a different gun texture.

So pretty much what I said except what you're saying isn't possible anyway, unless you make a mod.
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: Just a question.

Post by ant_8490 »

unless you have clients download a model with the exact same name. Example: weapons/physcannon.mdl, if everyone was to download a custom grav gun (maybe not even a grav gun) then it would change ur model since your hl2mp/models folders gets priority over the .gcf base files.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
jimmythecanadian
50+ Posts
50+ Posts
Posts: 69
Joined: Wed May 18, 2011 11:23 pm

Re: Just a question.

Post by jimmythecanadian »

Hmm I can test if that works tomorrow.

But let's say we got it to work and now when people connect to the DR server they see themselves holding a lightsaber. When they disconnect, they will still have the modified mdl file in their hl2dm folder correct? Since as you said it will take priority over the .gcf base files (which I'm assuming contains the default gun skin) won't they see themselves holding that lightsaber model on every server they connect to? Or does the server have to "ask" the client to show the modified model? Isn't it kind of an insecure system to allow a server to change a client's gun skin/model? Sorry I'm asking a lot of questions lol.

I haven't really done anything with valve servers before I'm not sure, but experimenting is the best way. I can just find out tomorrow.
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: Just a question.

Post by ant_8490 »

Yes, which is why I wouldn't force ppl to download models like that.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: Just a question.

Post by shadowslayer »

you could insert the model/texture into the map with pakrat
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
User avatar
naruto5422
100+ Posts
100+ Posts
Posts: 163
Joined: Fri Jul 22, 2011 1:37 am
Location: United States, Arizona.

Re: Just a question.

Post by naruto5422 »

How come you cant just make a weapon? lol
well i dont know anything of what you guys are talking about.
but like i said it was just a thought if you cant do thats great.
And if you can do, awesome. I hope you can get it to work. :3