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