Blockland Forums > Suggestions & Requests

Custom weapon eventing

Pages: (1/7) > >>

lordician:

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. :)

--- Quote from: Space Guy on May 11, 2010, 11:19:39 AM ---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

--- End quote ---


Azhang:

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

lordician:


--- Quote from: Azhang on May 07, 2010, 08:10:20 PM ---is this so every person has their own weapon when they spawn?

--- End quote ---
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.

Zoslis:


--- Quote from: Azhang on May 07, 2010, 08:10:20 PM ---is this so every person has their own weapon when they spawn?

--- End quote ---

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.

lordician:


--- Quote from: Zoslis on May 07, 2010, 08:12:52 PM ---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.

--- End quote ---
Indeed.
What do you think about it?

Also, confirmation about it being possible would be appriciated.

Pages: (1/7) > >>

Go to full version