#Various Custom Weapons

1 messages · Page 1 of 1 (latest)

marble steppe
oblique ice
#

Excellent work

#

Say, do you know who created the RTCW weapons? I would love to see those added also

marble steppe
#

Yeah I think Aperture did

#

Oh yeah, the minigun?

#

Venom Gun

oblique ice
#

Yes, loved it very much, I think it's on one of those Misfire servers

#

The FG-42 and the knife are good weapons too

knotty kettle
#

Judging by the tag, are there server plugin versions of this thing?

marble steppe
#

Nah, you're supposed to include the script files in the buymenu script and use the register functions

#

There should be a buymenu script somewhere chloethinking

#

Without a plugin like that you'll have to use the give command to get the weapons

#

Or .player_give @me weapon_redeemer if using afbase

knotty kettle
#

But anyways, I'll try what you said

oblique ice
#

Ok, that was funny. What I find interesting is that the Apache has some decent amounts of health and none of the enemies are targeting it.

#

Offtopic: Another thought has entered my mind. Could it be possible to create a controllable monster, just like in the Rocket Crowbar mod?

marble steppe
#

I was actually working on porting the RC mod to sven, but I didn't get far with the controllable npcs pinkieSad

marble steppe
oblique ice
#

This is great! Brings back the good old memories! Keep it up!

marble steppe
#

Added M16A2 from Firearms.

minor sorrel
#

Hey @marble steppe how do you register the Apache?

marble steppe
#

The same as any other; apacheweapon::Register();

#

Oh and the weapon_apache.txt goes into sprites\custom_weapons\hl_npc

minor sorrel
#

Thanks!

keen briar
# marble steppe Added M16A2 from Firearms.

Ohh, my favourite, thanks nero! man I wish someone would make full HL:WE and Firearms 3.0 weapons plugin for Sven Co-op just like KernCore's INS2 Weapons Plugin, but scripting all of them are not easy, which is understandable. Either way, thanks nero!

knotty kettle
#

BTW, I don't know about register commands, etc., How do we use them?

#

I was gonna test that once, but then I had a lot of work to do

#

Help would be very appericiated.

knotty kettle
#

Alright.

knotty kettle
#

It worked, TYSM!

knotty kettle
#

One more question, can I use the same method to use the weapons from your Quake 2 Weapons Pack?

marble steppe
#

Yeah I made a plugin for that too somewhere chloethinking

knotty kettle
#

I am still trying the same method on it, but it keeps giving me errors, here's how it looks like in my logs :

#

My custom weapons file :

knotty kettle
#

Wait a minute, how did you even update it so fast LOL

marble steppe
#

Yeah you need to include the items.as script as well

knotty kettle
#

Was about to say that.

marble steppe
#

And ammo

knotty kettle
#

I was like "why it feels like it's less than it should be?"

#

I'll try including those two

#

I'll report back the results

marble steppe
#

And projectiles hehe

knotty kettle
#

Now this...

#

I guess I'll use yours then

marble steppe
#

Yeah they're in common.as
But you can get them from the q2 plugin I just linked

knotty kettle
#

Oh my lord, anyways I'll try adding that too

marble steppe
#

Nah you shouldn't add that one

#

It has too much extra stuff

knotty kettle
#

Wait a minute

#

What if I added these three lines from your stuff?

marble steppe
#

Exactly

#

You'll probably also need the functions void q2_CreatePelletDecals and void q2_CreateShotgunPelletDecals

#

At the bottom

#

The q2 weapons were made as a map script, and I just threw together the plugin. Should probably clean everything up some day hehe

knotty kettle
#

No wonder why this feels like doing a brain surgery LOL

#

At least this means I am progressing

#

Just when I decided to fire it, the server crashed

#

It was like BFG was charging up to blast the server (sorry for the terrible joke)

marble steppe
#

Oh yeah, gotta register the projectiles and ammo too hehe

#

q2_RegisterProjectiles(); q2_RegisterAmmo();

#

It's probably easier if you just use the quake 2 plugin and put the redeemer stuff in there ayaya

#

And remove the weapons you don't want

#

That oughta do it nodGreen

knotty kettle
#

Well, they were already registered

#

That's the scary part

#

This is correct, right?

#

I wonder if they're case sensitive

marble steppe
#

Yupyup, yeah case sensitive

knotty kettle
#

Case sensitive...

#

There is nothing wrong there either

#

As a last resort, I'll just switch to the one you sent to me

#

Well, it's the same error, the server crashes because quake2/laser.mdl is not precached

marble steppe
#

Oh yeah

#

You're just using the bfg

#

laser.mdl gets precached in the blaster script for some reason chloethinking

#

Put
g_Game.PrecacheModel( "models/quake2/laser.mdl" );
in the bfg script then

knotty kettle
#

Alright, 2 sec

marble steppe
#

Right under
g_Game.PrecacheModel( "models/quake2/p_bfg.mdl" );

#

In void Precache()

knotty kettle
#

IT WORKED!

#

BTW, there is a small issue

#

BFG is hidden from HUD, is that easy to fix?

#

The projectile has a small issue with having too much yellow spawn particles, these two aren't gamebreaking but still a bit annoying

marble steppe
#

Hidden from hud? chloethinking

knotty kettle
marble steppe
#

Oh chloethinking

#

Check bool GetItemInfo in the bfg script. Maybe
info.iSlot info.iPosition
Are using the same values as another weapon

#

otherwise ¯_(ツ)_/¯

knotty kettle
#

Fixed it

#

Yellow spawn particles is superficial, but would be nice to fix, actually, I am asking for way too much : - )

#

Still, THANKYOUTHANKYOUTHANKYOUTHANKYOU- alright that was enough

keen briar
# knotty kettle

damn How great of you to use ecco plugin. I can't even get it to work. I'm just using the buymenu system that solokiller coded (similar to KernCore's weapon projects buymenu system)

knotty kettle
#

This is off-topic now so we should talk about it in #server-operators or #tech-support

keen briar
knotty kettle
#

Oh

marble steppe
#

Removing
self.pev.effects |= EF_BRIGHTFIELD;
Should do it

knotty kettle
#

I forgot to mention, I also learned how to make other map scripts act as plugins thanks to you, you just helped someone A LOT.

#

I didn't know about register commands, etc. until now

#

I wish I could somehow help you back, anyways, have a good day

marble steppe
#

You could get magical powers and heal my eyes and head! ayaya

marble steppe
# plain crystal what's wrong with them

||I haven't been able to use a computer properly or read a book or even short texts without debilitating symptoms for the past 5 years, and no one knows why because I live in a cuntry without proper healthcare (Sweden)FeelsBadMan ||

knotty kettle
marble steppe
#

Nah Sweden

hollow timber
#

Can't seem to be able to add these on a map, not through a plugin 😦

hollow timber
#

i'm only trying to add the biorifle and redeemer

marble steppe
#

It seems I uploaded an old version of the script, now that I finally have access to my PC again I can see that chloethinking