spawn a 'pulled' smoke grenade withou orpheu
I want to spawn a grenade in the map then after 2 seconds, make it explode
Would be awesome if this was possible without orpheu Any ideas? |
Re: spawn a 'pulled' smoke grenade withou orpheu
What's wrong with orpheu ?
|
Re: spawn a 'pulled' smoke grenade withou orpheu
Quote:
|
Re: spawn a 'pulled' smoke grenade withou orpheu
You want basically a smoke grenade effect at specific origin exploding x seconds after its spawn, right ?
|
Re: spawn a 'pulled' smoke grenade withou orpheu
Im not a fan of orpheu cos I wanna change the code and I don't know any syntax or functions :(
@Arkshine: yea that's pretty much it. I wanna set some velocity on it and I can spawn the model etc. but Idk how to make it explode properly. If its possible to replicate the explosion rather than spawn the made itself, could I get an example for all 3 grade types (hegrenade, flashbang and smoke) Smoke is the main priority though |
Re: spawn a 'pulled' smoke grenade withou orpheu
|
Re: spawn a 'pulled' smoke grenade withou orpheu
This plugin doesn't reproduce properly the original effects and it's also badly coded.
@minimiller : I can't think a way without rewriting all manually and it's really boring because you will have a big and non-efficient code. You know, orpheu exists to solve such problems and it's really suitable here. You have just to write the part to spawn a grenade and set some properties, then you use orpheu to call CGrenade::Detonate() (flashbang), CGrenade::Detonate3() (he), CGrenade::SG_Detonate() (smoke). For theses functions you don't need to make a signature, there are exported functions, meaning a symbol name exists, so just a matter to copy-paste. If you have really no idea how to make a signature file, tell me, I will do for you and showing an example how to call it. |
Re: spawn a 'pulled' smoke grenade withou orpheu
If you really need to avoid Orpheu, you could possibly give a player a grenade, use the method from this plugin ( https://forums.alliedmods.net/showthread.php?t=84946 ) to throw it, then you can get the grenade that is thrown and alter it.
I'd recommend you use Orpheu though. |
Re: spawn a 'pulled' smoke grenade withou orpheu
I'm not sure it's a good idea because it will trigger many things on the client + radio and that's not he wants.
|
Re: spawn a 'pulled' smoke grenade withou orpheu
hmmm
i wanted to do it without interacting with the players really looks like i need to learn some orpheu then :p |
| All times are GMT -4. The time now is 14:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.