AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Middle map fireworks. (https://forums.alliedmods.net/showthread.php?t=276759)

siriusmd99 12-27-2015 15:19

Middle map fireworks.
 
Hey, i saw fireworks plugin but it's complicated
I just want to call function for example : set_fireworks() and this function sets and launches fireworks in the middle of the map so that both cts and ts could see fireworks from their spawn places.

Is it possible? And who can give me concrete code? Because i don't understand advanced scripting.

siriusmd99 01-08-2016 17:56

Re: Middle map fireworks.
 
Does anyone know how to do this?

addons_zz 01-08-2016 18:12

Re: Middle map fireworks.
 
You just have to save their spawn points, as the CSDM do, then spawn them when your call you function. Look at the Gun Game Mod code, it uses spawn points.

But a better code to look is, the Just Capture The Flag Mod, where you can learn how to create spawn points and save them. Its because, there you can configure where to spawn the flags and save their location using commands to move the flag to you location and save that location to the file.

siriusmd99 01-09-2016 07:39

Re: Middle map fireworks.
 
Ohh..
How to get coordinates manually to set fireworks?

For example i use noclip go on certain part of the map and write get_coord and a function from amxx gets coordination from my possition.

But it will be better if i could make amxx get middle map coordinates automaticaly.

addons_zz 01-09-2016 07:51

Re: Middle map fireworks.
 
Quote:

Originally Posted by siriusmd99 (Post 2381531)
Ohh..
But it will be better if i could make amxx get middle map coordinates automaticaly.

Automaticaly? The only way I know to do this automatically is to create an AI (Artificial Intelligence), which knows what is that "middle map coordinates" you wants it to get.

siriusmd99 01-09-2016 08:09

Re: Middle map fireworks.
 
Quote:

Originally Posted by addons_zz (Post 2381535)
Automaticaly? The only way I know to do this automatically is to create an AI (Artificial Intelligence), which knows what is that "middle map coordinates" you wants it to get.

Ok, then manually. I just play on 3 maps. How can i get?

addons_zz 01-09-2016 08:31

Re: Middle map fireworks.
 
Quote:

Originally Posted by siriusmd99 (Post 2381543)
Ok, then manually. I just play on 3 maps. How can i get?

Quote:

Originally Posted by addons_zz (Post 2381375)
You just have to save their spawn points, as the CSDM do, then spawn them when your call you function. Look at the Gun Game Mod code, it uses spawn points.

But a better code to look is, the Just Capture The Flag Mod, where you can learn how to create spawn points and save them. Its because, there you can configure where to spawn the flags and save their location using commands to move the flag to you location and save that location to the file.



All times are GMT -4. The time now is 17:56.

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