Name: Molotov Type: Weapon Author: John Doe Description: Throws a grenade that explodes a few feet in front of them. Notes: Required images and scripts are attached.
holy shit are you blind! this thread is so dead its deader then dead. How the hell did you find this. Actually nm… I severly underestimate the powers of necroposters
[QUOTE=fredi125;102444]
Making a molotov that you throw with a mouseclick between a minimum and maximum distance from the player could actually not be so hard to do.
Tricxta is gonna be mad :P[COLOR=“Silver”]
---------- Post added at 01:26 AM ---------- Previous post was at 12:21 AM ----------
[/COLOR]Done!
(What’s the tag for adding code??)
// NPC made by Fredi
if (playertouchsme){
toweapons Molotov
}
Implement that in your script and you’re off to a good start, I’d then suggest you acquaint yourself with ‘shoot’ projectiles, work out some trajectory angle and delay the explosion until the projectile lands at the valid point. I say all this, because at the moment your script is rather simple and boring(sorry) but with a few tweaks here and there, it could be something quite cool.
Also in reference to the original script, let it be known that using putnpc to place npcs in this senario is a bad idea as it can easily be avoided, putnpc should really only ever be used when there’s absolutely no alternative. I say this because it’s been known to crash servers with ease if a player chooses to team up with another and spam ‘putnpc’.
Haha don’t worry I know it’s fairly simple, it took me about 20 mins and I’ve almost never worked with mouseclicks and advanced scripting, it was more of a proof of concept that some simple and effective molotov could be done using mouseclick.
[QUOTE=fredi125;102448]Haha don’t worry I know it’s fairly simple, it took me about 20 mins and I’ve almost never worked with mouseclicks and advanced scripting, it was more of a proof of concept that some simple and effective molotov could be done using mouseclick.[/QUOTE]
people have been doing point->click->explosion for ages, it’s called staff abuse.
Did some playing, as you shoot further away from your player the projectiles get less accurate. If anyone knows how you could trigger an event once the projectile has landed that’d be cool, you could then place an explosion, hence making a more realistic molotov. Also this gives me some pretty great inspiration for a quick artillery like server.