Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $
Target: $400
0%
Search Forums
Show Threads
Show Posts
Advanced Search
Go to Page...
Page 1 of 5
1
2
3
>
Last
»
Showing results 1 to 25 of 103
Search took
0.03
seconds.
Search:
Posts Made By:
abgar
Forum:
Scripting
06-17-2016, 08:44
Replies:
16
GetRandomInt EXCEPT
Views:
4,969
Posted By
abgar
Re: GetRandomInt EXCEPT
Thanks for the great inputs guys, i've got what i need now, and great to see so many different ways of doing it :)
Forum:
Scripting
06-15-2016, 06:25
Replies:
16
GetRandomInt EXCEPT
Views:
4,969
Posted By
abgar
Re: GetRandomInt EXCEPT
Thanks Klippy, that's a nice approach too, actually
Forum:
Scripting
06-15-2016, 04:56
Replies:
16
GetRandomInt EXCEPT
Views:
4,969
Posted By
abgar
Re: GetRandomInt EXCEPT
Thanks Yeradon,
I think this method might be the best, and I can see how this will work for what i need.
Thanks very much for your help :)
Forum:
Scripting
06-15-2016, 03:57
Replies:
16
GetRandomInt EXCEPT
Views:
4,969
Posted By
abgar
GetRandomInt EXCEPT
Hi guys,
Hopefully pretty simple question.
How can i get a random int between numbers, except NOT return a specified value?
I.e. let's say i want to do GetRandomInt(1,10) but NOT have number 4...
Forum:
Scripting
06-12-2016, 05:39
Replies:
7
Killing Entities
Views:
2,294
Posted By
abgar
Re: Killing Entities
Ahhh ok - i understand what you're saying now. So, for a simple kill entity, it's better to use the AddOutput method, but when doing other things (i.e teleporting entity, calculating clients nearby...
Forum:
Scripting
06-11-2016, 03:59
Replies:
7
Killing Entities
Views:
2,294
Posted By
abgar
Re: Killing Entities
So you mean instead of:
AcceptEntityInput(fire, "AddOutput");
Use:
AcceptEntityInput(EntIndexToEntRef(fire), "AddOutput");
Like that?
So, Neuro Toxin you're suggesting use the Timer...
Forum:
Scripting
06-10-2016, 10:24
Replies:
7
Killing Entities
Views:
2,294
Posted By
abgar
Killing Entities
Hi guys, just a quick question about killing entities, as i've just seen something new....
So, in a nutshell (and forgetting about the actual creation of the entity - this is just cut down for...
Forum:
Scripting
06-07-2016, 00:26
Replies:
6
[CS:S] Stopping an ambient sound
Views:
1,987
Posted By
abgar
Re: [CS:S] Stopping an ambient sound
Ahhh - Ok, so with a little bit more research, i've now solved this issue, and it's quite simple, actually.
new String:WaterSound[]="ambient/water/water_run1.wav";
// Precached sound in...
Forum:
Scripting
06-06-2016, 08:31
Replies:
6
[CS:S] Stopping an ambient sound
Views:
1,987
Posted By
abgar
Re: [CS:S] Stopping an ambient sound
Really? I tried using that, i did see that there's a location option, but this was still being heard by the client regardless of proximity to the location.....
Forum:
Scripting
06-06-2016, 08:07
Replies:
6
[CS:S] Stopping an ambient sound
Views:
1,987
Posted By
abgar
Re: [CS:S] Stopping an ambient sound
Ahh sorry Databomb, just extracted from my full code to show the intended use. I'll update that for ease of reading.
I've used EmitSoundToClient / StopSound, but im actually after the...
Forum:
Scripting
06-06-2016, 04:16
Replies:
6
[CS:S] Stopping an ambient sound
Views:
1,987
Posted By
abgar
[CS:S] Stopping an ambient sound
Hi guys
Im trying to stop a sound that's emitted as an ambient sound, but only after it's been playing for XX seconds. I've searched for the answer to this, and found the AmbienSoundHook, but not...
Forum:
Scripting
05-30-2016, 01:52
Replies:
6
[CS:S] Parent Entity or Sprite to Weapon
Views:
2,633
Posted By
abgar
Re: [CS:S] Parent Entity or Sprite to Weapon
Thanks for that information, however unfortunately im still not sure how to attach the sprite to the weapon, instead of the client. (or an enity to a weapon, as i could use either a sprite or an...
Forum:
Scripting
05-29-2016, 00:13
Replies:
9
Getting position vector from eye angle.
Views:
2,010
Posted By
abgar
Re: Getting position vector from eye angle.
new Float:startpos[3], Float:angle[3], Float:endpos[3], Float:direction[3];
GetClientEyeAngles(client,angle);
GetClientEyePosition(client,startpos);
GetAngleVectors(angle, direction,...
Forum:
Scripting
05-28-2016, 02:02
Replies:
6
[CS:S] Parent Entity or Sprite to Weapon
Views:
2,633
Posted By
abgar
Re: [CS:S] Parent Entity or Sprite to Weapon
Thanks for that.
I've never really dealt with edicts, entities etc - so just trying to figure out my way through this.
After a bit of trial and error, and searching the API, I've tried this:...
Forum:
Scripting
05-27-2016, 21:41
Replies:
6
[CS:S] Parent Entity or Sprite to Weapon
Views:
2,633
Posted By
abgar
[CS:S] Parent Entity or Sprite to Weapon
Hi guys,
I found this piece of code for attaching a sprite to a player.
My question is, can i parent this to the actual weapon instead? And if so, how do i do this? (Note - the weapon will...
Forum:
Scripting
05-18-2016, 07:25
Replies:
3
question about button detections
Views:
920
Posted By
abgar
Re: question about button detections
Yep, just about :)
An example below:
bool bDucking[MAXPLAYERSCUSTOM];
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{
...
Forum:
Scripting
05-18-2016, 07:19
Replies:
1
[CS:S] Create Smoke Ball
Views:
801
Posted By
abgar
Re: [CS:S] Create Smoke Ball
Hi guys,
I've found the below which gives me exactly what i need for a starting point.
However can someone help me please with how to 'fire' this entity from the client, to the direction their...
Forum:
Scripting
05-09-2016, 04:07
Replies:
5
[CS:S] Offset SetEntityModel
Views:
1,341
Posted By
abgar
Re: [CS:S] Offset SetEntityModel
Thanks Mitchell. The creation and parenting of the prop is what I need help with though... Can u help with that at all?
Forum:
Scripting
05-07-2016, 09:07
Replies:
5
[CS:S] Offset SetEntityModel
Views:
1,341
Posted By
abgar
Re: [CS:S] Offset SetEntityModel
Thanks Bacardi,
Tried using the mVecOrign like so on a decitimer - although this constantly moves up and down every 0.1 second while still, and does nothing when moving:
new Float:myPos[3];...
Forum:
Scripting
05-07-2016, 06:43
Replies:
5
[CS:S] Offset SetEntityModel
Views:
1,341
Posted By
abgar
[CS:S] Offset SetEntityModel
Hi guys, im wondering if there's a way to offset a model used in game?
Think of a prop-hunt style thing, where i've got a client changing into a cardboard box model while crouching (can still...
Forum:
Scripting
05-05-2016, 19:22
Replies:
2
Creating Entities
Views:
970
Posted By
abgar
Re: Creating Entities
One i had lying around....
new iEntity = CreateEntityByName("light_dynamic");
if (iEntity != -1)
{
new iRef = EntIndexToEntRef(iEntity);
decl String:sBuffer[64];
...
Forum:
Scripting
05-03-2016, 09:38
Replies:
4
Compile.exe Is Not Working!
Views:
1,089
Posted By
abgar
Re: Compile.exe Is Not Working!
https://forums.alliedmods.net/showthread.php?t=278337
Forum:
Scripting
05-03-2016, 05:16
Replies:
4
Compile.exe Is Not Working!
Views:
1,089
Posted By
abgar
Re: Compile.exe Is Not Working!
If Spider doesn't work, it could be worth re-installing your compile files, or use the compile.sh with command line (or through notepad++, my personal favourite)
Forum:
Scripting
05-01-2016, 07:51
Replies:
1
[CS:S] Create Smoke Ball
Views:
801
Posted By
abgar
[CS:S] Create Smoke Ball
Hi guys,
Im wanting to make a large smoke ball effect that shoots out from a player for a certain distances, and then disappears, and be able to detect if that smoke balls come into contact with...
Forum:
Scripting
04-28-2016, 09:16
Replies:
0
[CS:S] func_rotating help
Views:
468
Posted By
abgar
[CS:S] func_rotating help
Hi guys,
So, i've found the below code snippet somewhere, which with a few tweaks will give me exactly what i want (hopefully)...
The below creates an env_beam that orbits a players position. ...
Showing results 1 to 25 of 103
Page 1 of 5
1
2
3
>
Last
»
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Server Discussion
Source Servers (SRCDS)
HL1 Servers (HLDS)
AMX Mod X
News
Bug Reports
General
Off-Topic
Plugins
Suggestions / Requests
Approved Plugins
New Plugin Submissions
Unapproved/Old Plugins
Translation Request
High-Traffic Plugins
GunGame
UAIO (Ultimate All-In-One Plugin)
xREDIRECT
CSDM
AMX Super
RuneMod
Zombie Plague Mod
SuperHero Mod
News
Tech Support
Scripting Help
Off-Topic / General Chat
Heroes
Suggestions / Requests
Approved Heroes
New Submissions
Unapproved/Old Heroes
Module Heroes
SuperHero Mod Stats - By 123
(OLD) Bug Reports
Scripting
Scripting Help
Code Snippets/Tutorials
Module Coding
Donor Access
SourceMod
News
General
Plugins
Plugins
Unapproved Plugins
Plugin/Gameplay Ideas and Requests
High-Traffic Plugins
SourceMod Anti-Cheat
Zombie:Reloaded
SourceBans / SourceBans++
VSH / Freak Fortress
Store
SM_Hosties
HLstatsX:CE
Scripting
Extensions
Snippets and Tutorials
Donor Access
Metamod: Source
Metamod:Source Plugins
Metamod:Source Questions
Coding MM:S Plugins & SM Extensions
Hosted Stuff
Asherkin's Plugins
TFDodgeball
TF2Items
SteamTools
Bail's Plugins
CSDM
CS:S DM
Off-Topic & Trash
Off-Topic
Trash
All times are GMT -4. The time now is
12:27
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode