AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   spawn a 'pulled' smoke grenade withou orpheu (https://forums.alliedmods.net/showthread.php?t=153502)

minimiller 03-24-2011 14:43

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?

drekes 03-24-2011 15:35

Re: spawn a 'pulled' smoke grenade withou orpheu
 
What's wrong with orpheu ?

meTaLiCroSS 03-24-2011 15:42

Re: spawn a 'pulled' smoke grenade withou orpheu
 
Quote:

Originally Posted by drekes (Post 1438780)
What's wrong with orpheu ?

He knows his reasons, why when someone asks "I want this, but without this" there is ALWAYS the same guy asking "why without that?" OMG...

Arkshine 03-24-2011 18:47

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 ?

minimiller 03-24-2011 18:57

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

Emp` 03-24-2011 19:13

Re: spawn a 'pulled' smoke grenade withou orpheu
 
https://forums.alliedmods.net/showthread.php?t=24385

Arkshine 03-24-2011 19:50

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.

Emp` 03-24-2011 21:14

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.

Arkshine 03-25-2011 06:21

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.

minimiller 03-25-2011 06:42

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.