Author Topic: Custom weapon eventing  (Read 2306 times)

Lately i was thinking about this:
Creating your own custom weapon by events.

As far as i could think at that moment, it should be do-able.

So how does it work?
-Place Brick
-Wrench brick
-Go to Events
-Add events

Events:

Triggers:
OnCustomWeaponSpawn- Player/Weapon/Self
OnCustomWeaponFire- Player/Weapon/Self
OnCustomWeaponMount- Player/Weapon/Self
OnCustomWeaponUnMount- Player/Weapon/Self
OnCustomProjectileHit- Player/Target (same as player, but obviously the hitted player)/Weapon/Projectile/Self

Functions:
...-Weapon-SetModel   (Sets a model for your custom weapon, pick out of any model that you have on your server (item models))
...-Weapon-SetCustomProjectile   (Sets how the Projectile should look like (pick out of existing projectiles))
...-Weapon-SetMuzzlePoint   (Sets the place where the projectile comes from (if not set, the projectile will come from the mountpoint)
...-Weapon-SetColor   (Obviously sets the color)
...-Weapon-SpawnCustomProjectile (Spawns the custom projectile, which look you can set and which effect you can set with the other events)
...Weapon-SpawnProjectile (Spawns a existing projectile)
...Weapon-MountToBack   (With a box to change the position of the mounting (+X,+Y,+Z)
...Weapon-SpawnEmitter   (Choose out of existing emitters, then add a value in the box behind it to determine how long the emitter should be shown)
...Weapon-SpawnExplosion   (Spawns an existing explosion, choose from existing explosions)
...-Player-GiveCustomWeapon   (gives the targeted player the custom weapon which is evented on the same brick)


Imagine the possibilities...
Discuss, give comments or try to add something usefull to this now!


SpaceGuy did some testing on this and well, see for yourself. :)
Here, for some early testing. See what you can make with it.

1. Plant a brick
2. Set the 'Event Gun' item on it (currently this is the only type available)
3. Set some events on the brick for onItemTrigger to spawn a projectile
4. Pick up the item and fire it
« Last Edit: May 11, 2010, 11:38:39 AM by lordician »

is this so every person has their own weapon when they spawn?

is this so every person has their own weapon when they spawn?
No, with this you can create your own custom weapon by events.
You can use the event:
Player-GiveCustomWeapon to give it to the targeted player.
Forgot to add that one.

is this so every person has their own weapon when they spawn?

No. It's basically, A "Build your own gun" Kind of thing. Ingame, you choose model, ammo, Effects. The usual weapon stuff.

........Way to post it as I post it meanie.

No. It's basically, A "Build your own gun" Kind of thing. Ingame, you choose model, ammo, Effects. The usual weapon stuff.

........Way to post it as I post it meanie.
Indeed.
What do you think about it?

Also, confirmation about it being possible would be appriciated.

ooohhh, sounds pretty cool.
Warning - while you were typing a new reply has been posted. You may wish to review your post.

Ima Firin Mah Lazah!!!

BUUZZZEEYYOOO

I had this idea once but in my idea you could just add attachments to a gun in a gui.
Your idea is more possible than mine :(

Indeed.
What do you think about it?

I think it would be amazing.

I had this idea once but in my idea you could just add attachments to a gun in a gui.
Your idea is more possible than mine :(
a gui sounds much more easier.

a gui sounds much more easier.
Oh, heck no. Maybe in game, but GUI's are kinda hard to make. Or I'm just taking that by the fact I'm seeing barely ANY gui's on stuff.

Oh, heck no. Maybe in game, but GUI's are kinda hard to make. Or I'm just taking that by the fact I'm seeing barely ANY gui's on stuff.
not to make but to use in game.

not to make but to use in game.
That is the tradeoff. And I think his would be a more Admin oriented tool anyway. Seeing that he has Give commands as stated. besides, it's events. Can't go too wrong with those.

That is the tradeoff. And I think his would be a more Admin oriented tool anyway. Seeing that he has Give commands as stated. besides, it's events. Can't go too wrong with those.
aight then,
either way, i want this to happen.

aight then,
either way, i want this to happen.
Yeah.

This would be impossible.