Raised This Month: $ Target: $400
 0% 

spawn a 'pulled' smoke grenade withou orpheu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 03-24-2011 , 14:43   spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #1

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?
__________________
minimiller is offline
Send a message via MSN to minimiller
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-24-2011 , 15:35   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #2

What's wrong with orpheu ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 03-24-2011 , 15:42   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #3

Quote:
Originally Posted by drekes View Post
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...
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-24-2011 , 18:47   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #4

You want basically a smoke grenade effect at specific origin exploding x seconds after its spawn, right ?
__________________
Arkshine is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 03-24-2011 , 18:57   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #5

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
__________________
minimiller is offline
Send a message via MSN to minimiller
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-24-2011 , 19:13   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #6

https://forums.alliedmods.net/showthread.php?t=24385
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-24-2011 , 19:50   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #7

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:etonate() (flashbang), CGrenade:etonate3() (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.
__________________
Arkshine is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-24-2011 , 21:14   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #8

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.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-25-2011 , 06:21   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #9

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.
__________________
Arkshine is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 03-25-2011 , 06:42   Re: spawn a 'pulled' smoke grenade withou orpheu
Reply With Quote #10

hmmm
i wanted to do it without interacting with the players really

looks like i need to learn some orpheu then :p
__________________
minimiller is offline
Send a message via MSN to minimiller
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode