AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [FAQ/Tutorial] CS Bomb Scripting (https://forums.alliedmods.net/showthread.php?t=40164)

Brad 11-30-2006 20:47

Re: CS Bomb Scripting FAQ/Tutorial
 
sighface

You're receiving id as an argument into your function. You don't then re-declare it. In other words, scrap the whole "new id =" line.

The Specialist 11-30-2006 21:00

Re: CS Bomb Scripting FAQ/Tutorial
 
but according to VEN thats the only way to get an index from a logevent. Since logevents dont parse indexs jsut names . so using VEN's get_loguser_index function and assigning == to id liek he did on the very first page of this tutorial at the top .

Zenith77 11-30-2006 22:01

Re: CS Bomb Scripting FAQ/Tutorial
 
You can't declare a variable with the name of one of the parameters...

The Specialist 11-30-2006 22:22

Re: CS Bomb Scripting FAQ/Tutorial
 
i know that know lol :cry: .

Emp` 11-30-2006 22:55

Re: CS Bomb Scripting FAQ/Tutorial
 
can we get a dump for c4s? (incase people want to make their own bomb)

VEN 12-01-2006 04:49

Re: CS Bomb Scripting FAQ/Tutorial
 
1 Attachment(s)
I don't think that the dump info will help to recreate the exact functionality of the CS C4. There are many things that AMXX unable to do. For example you can't create a weaponbox with the packed weapon, etc. We need a direct access to the mod to do such mod-specific things.
But anyway, here is the dump.

VEN 01-01-2007 22:05

Re: CS Bomb Scripting FAQ/Tutorial
 
Updated the section "How to remove the dropped bomb?" with the better technical method of deleting bomb backpack - "natural" and safe now.

VEN 04-12-2007 15:17

Re: [FAQ/Tutorial] CS Bomb Scripting
 
Updated "Targets" section.

Zenith77 04-12-2007 21:01

Re: [FAQ/Tutorial] CS Bomb Scripting
 
I believe I was going to do this before, but I've decided not to for some reason. Maybe you should look in on how to trigger the c4 explosion "naturally" (probably impossible).

VEN 04-13-2007 09:38

Re: [FAQ/Tutorial] CS Bomb Scripting
 
Code:
set_pdata_float(ent, 100 /* win32 offset */, get_gametime())


All times are GMT -4. The time now is 23:34.

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